Summary
irregex-replace/all behaves weirdly at bos/bol
Metadata
- Id: 3b152e63064b6a3d8beeea1f7c5efa967a28c5c2
- Trac id: 1661
- Type: defect
- Reporter: sjamaan
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty: medium
- Resolution: fixed
- Priority: major
- Milestone: 5.2
- Version: 5.1.0
- Changetime: 2020-01-12 13:02:07 UTC
- Created: 2019-12-30 08:45:59 UTC
- Keywords: irregex
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