diff options
| author | Thomas Voss <thomas.voss@humanwave.nl> | 2026-03-19 16:37:58 +0100 |
|---|---|---|
| committer | Thomas Voss <thomas.voss@humanwave.nl> | 2026-03-19 16:37:58 +0100 |
| commit | ac56f0167d0e26c35adc4639015e0cbbeecf6262 (patch) | |
| tree | a376eb7a1bd3052737420e668c216a5ac5f77cf8 /vendor/librune/man | |
| parent | 19e2b9bc23e71ccafdd754686d4881058b8a1fb5 (diff) | |
The previous code would find all matches by searching for a match,
chopping it off of the string view, and then matching again in a loop.
This caused bugs with anchors such as ^, because x/^a/ would
match *every* instance of ‘a’ instead of just ‘a’s at the start of the
matching context.
This PR switches the matching engine to use the offset parameter of
pcre2_jit_match() to correctly handle anchors.
Diffstat (limited to 'vendor/librune/man')
0 files changed, 0 insertions, 0 deletions