Opened 8 years ago

Closed 8 years ago

#1064 closed defect (fixed)

irregex-match with `eow` doesn't behave like example in docs

Reported by: evhan Owned by:
Priority: major Milestone: 4.9.0
Component: core libraries Version: 4.8.x
Keywords: irregex Cc:
Estimated difficulty:

Description

The docs for the irregex unit give the following example:

(irregex-match '(: "foo" eow) "foo!") => #<match>

But that currently returns #f. This is true for irregex proper as well (tested with a handful of different Schemes).

Change History (2)

comment:1 Changed 8 years ago by sjamaan

Milestone: someday4.9.0

To be fixed before 4.9.0

comment:2 Changed 8 years ago by sjamaan

Resolution: fixed
Status: newclosed

This is exactly the same documentation bug as #1065: the regex in question doesn't consume the exclamation mark, so irregex-match will fail, where irregex-search will succeed. Fixed.

Note: See TracTickets for help on using tickets.