pregexp can now return a regexp object.

This commit is contained in:
Sam Tobin-Hochstadt 2006-09-19 13:01:04 -04:00
parent b42e317e0c
commit 086db937b8

View File

@ -67,6 +67,7 @@
;; this makes pregexp errors a little more friendly
(define (pregexp-match-with-error regex str)
(if (or (string? regex)
(regexp? regex)
(and (pair? regex)
(equal? ':sub (car regex))))
(pregexp-match regex str)