Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#687 closed enhancement (fixed)

irregex-replace returns #f when nothing was replaced

Reported by: Moritz Heidkamp Owned by: sjamaan
Priority: major Milestone: 4.9.0
Component: core libraries Version: 4.7.x
Keywords: irregex Cc: felix winkelmann
Estimated difficulty:

Description

irregex-replace currently returns #f when nothing was replaced instead of the original string. This is slightly inconvenient as well as inconsistent with irregex-replace/all's behavior. Example:

#;6> (irregex-replace "foo" "bar" "baz")
#f
#;7> (irregex-replace/all "foo" "bar" "baz")
"bar"

Change History (3)

comment:1 Changed 11 years ago by sjamaan

Cc: felix winkelmann added
Owner: set to sjamaan
Status: newaccepted

Fixed upstream in e53cba40b988

Merged in irregex-bugfixes branch as 88690836207d7d4c9cc99654da8d071eaf1ba733

I've also added a change to types.db to reflect the fact that both replace procedures always return strings. This is changeset 9b4f78a1c698ac020954ba9821dea77d53498394.

comment:2 Changed 11 years ago by felix winkelmann

Resolution: fixed
Status: acceptedclosed

Merged. Thanks.

comment:3 Changed 10 years ago by felix winkelmann

Milestone: 4.8.04.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.