Fix broken regex
authorSimon Marlow <simonmar@microsoft.com>
Fri, 21 Jul 2006 11:11:44 +0000 (11:11 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 21 Jul 2006 11:11:44 +0000 (11:11 +0000)
Don't know how I managed to use this before... maybe a different regex
library.

utils/nofib-analyse/Slurp.hs

index f775bae..a457857 100644 (file)
@@ -75,7 +75,7 @@ Various banner lines:
 ==nofib== boyer2: time to compile Checker follows...
 -}
 
-banner_re = mkRegex "^==nofib==[ \t]+([A-Za-z0-9-_]+):[ \t]+(size of|time to link|time to run|time to compile)[ \t]+([A-Za-z0-9-_]+)(\\.o)?[ \t]+follows"
+banner_re = mkRegex "^==nofib==[ \t]+([A-Za-z0-9\\-_]+):[ \t]+(size of|time to link|time to run|time to compile)[ \t]+([A-Za-z0-9\\-_]+)(\\.o)?[ \t]+follows"
 
 {-
 This regexp for the output of "time" works on FreeBSD, other versions