correct regexp for magic, again

svn: r5409

original commit: 24bc2eb636ac2b2c3196e31a63df48f92409fc16
This commit is contained in:
Matthew Flatt 2007-01-19 02:48:52 +00:00
parent 4a86f8b92f
commit 5e8a1936b1

View File

@ -254,7 +254,7 @@
(let ([p (open-input-file filename)])
(port-count-lines! p)
(let ([p (cond
[(regexp-match-peek #rx#"^(?:#reader(lib\"read[.]ss\"\"wxme\"))?WXME01[0-9][0-9] ##[ \r\n]" p)
[(regexp-match-peek #rx#"^(?:#reader[(]lib\"read[.]ss\"\"wxme\"[)])?WXME01[0-9][0-9] ##[ \r\n]" p)
(let ([t (make-object text%)])
(send t insert-port p 'standard)
(close-input-port p)