use regexp-match? instead of regexp-match in regexp-based contracts
This commit is contained in:
parent
6e5cf70c95
commit
a90d48975a
|
@ -305,10 +305,10 @@
|
||||||
(build-flat-contract-property
|
(build-flat-contract-property
|
||||||
#:first-order
|
#:first-order
|
||||||
(λ (ctc)
|
(λ (ctc)
|
||||||
|
(define reg (regexp/c-reg ctc))
|
||||||
(λ (x)
|
(λ (x)
|
||||||
(and (or (string? x) (bytes? x))
|
(and (or (string? x) (bytes? x))
|
||||||
(regexp-match (regexp/c-reg ctc) x)
|
(regexp-match? reg x))))
|
||||||
#t)))
|
|
||||||
#:name (λ (ctc) (regexp/c-reg ctc))
|
#:name (λ (ctc) (regexp/c-reg ctc))
|
||||||
#:stronger
|
#:stronger
|
||||||
(λ (this that)
|
(λ (this that)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user