pregexp can now return a regexp object.
This commit is contained in:
parent
b42e317e0c
commit
086db937b8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user