1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/crates
Andrew Gallant ee23ab5173 printer: trim line terminator before finding submatches
This fixes a bug where PCRE2 look-around could change the result of a
match if it observed a line terminator in the printer. And in
particular, this is precisely how the searcher operates: the line is
considered unto itself *without* the line terminator.

Fixes #1401
2021-05-31 21:51:18 -04:00
..
cli cli: fix process leak 2021-05-31 21:51:18 -04:00
core grep: fix bugs in handling multi-line look-around 2021-05-31 21:51:18 -04:00
globset globset: fix recursive suffix over matching 2021-05-31 21:51:18 -04:00
grep doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
ignore ignore: check ignore rules before issuing stat calls 2021-05-31 21:51:18 -04:00
matcher grep: fix bugs in handling multi-line look-around 2021-05-31 21:51:18 -04:00
pcre2 doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
printer printer: trim line terminator before finding submatches 2021-05-31 21:51:18 -04:00
regex grep: fix bugs in handling multi-line look-around 2021-05-31 21:51:18 -04:00
searcher grep: fix bugs in handling multi-line look-around 2021-05-31 21:51:18 -04:00