Summary

irregex-replace returns #f when nothing was replaced

Metadata

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"

Changes and comments

[2011-09-06 21:40:56 UTC] sjamaan set cc to felix

[2011-09-06 21:40:56 UTC] sjamaan changed status from new to accepted

[2011-09-06 21:40:56 UTC] sjamaan set owner to sjamaan

[2011-09-06 21:40:56 UTC] sjamaan wrote:

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.

[2011-09-09 09:23:41 UTC] felix changed status from accepted to closed

[2011-09-09 09:23:41 UTC] felix set resolution to fixed

[2011-09-09 09:23:41 UTC] felix wrote:

Merged. Thanks.

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted