regex library misbehaviour

Ferenc Wagner wferi@afavant.elte.hu
Tue, 26 Aug 2003 22:02:22 +0200


Hello,

loading this:
---------------------8<--------------------
import Text.Regex

re2 = mkRegexWithOpts "was" True True
match = matchRegexAll re2 "this was wrong"
---------------------8<--------------------
into hugs +N (November 2002) and evaluating match gives:

Main> match
Just ("this","was"," wrong",[])

where a space is missing at the end of the first String.
Seems like a one-off error (other characters disappear,
too).

System: Debian Woody
Hugs from the unstable source package (local build)

Best wishes,
Feri.