#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 13 years ago by
Cc: | felix winkelmann added |
---|---|
Owner: | set to sjamaan |
Status: | new → accepted |
Note: See
TracTickets for help on using
tickets.
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.