[project @ 2005-08-04 11:40:26 by simonmar]
authorsimonmar <unknown>
Thu, 4 Aug 2005 11:40:26 +0000 (11:40 +0000)
committersimonmar <unknown>
Thu, 4 Aug 2005 11:40:26 +0000 (11:40 +0000)
fix typo in subRegex (fixes subRegex breakage on Windows)

libraries/base/Text/Regex.hs

index 7a24043..152616a 100644 (file)
@@ -94,7 +94,7 @@ subRegex :: Regex                          -- ^ Search pattern
       -> String                         -- ^ Output string
 subRegex _ "" _ = ""
 subRegex regexp inp repl =
-    let bre = mkRegex "\\\\(\\\\||[0-9]+)"
+    let bre = mkRegex "\\\\(\\\\|[0-9]+)"
         lookup _ [] _ = []
         lookup [] _ _ = []
         lookup match repl groups =