Summary

irregex-replace/all behaves weirdly at bos/bol

Metadata

Description

Reported by Petruchio on IRC:

``` (irregex-replace/all (irregex 'bol) "Line1\nLine2" "*") => "ine1\n*Line2" ```

Expected output is `"*Line1\n*Line2"`. If you use `bos` instead of `bol` the first character gets "eaten" as well.

Changes and comments

[2019-12-30 09:16:29 UTC] sjamaan wrote:

Looks like the problem is in irregex-fold/fast, where it skips ahead on the empty match.

[2020-01-12 13:02:07 UTC] sjamaan changed status from new to closed

[2020-01-12 13:02:07 UTC] sjamaan set resolution to fixed

[2020-01-12 13:02:07 UTC] sjamaan wrote:

Fixed with the update to irregex 0.9.7