1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/crates
Andrew Gallant 581a35e568
impl: fix --multiline anchored match bug
This fixes a bug where using \A or (?-m)^ in combination with
-U/--multiline would permit matches that aren't anchored to the
beginning of the file. The underlying cause was an optimization that
occurred when mmaps couldn't be used. Namely, ripgrep tries to still
read the input incrementally if it knows the pattern can't match through
a new line. But the detection logic was flawed, since it didn't account
for line anchors. This commit fixes that.

Fixes #1878, Fixes #1879
2021-05-29 07:37:28 -04:00
..
cli cli: fix stdin detection for Powershell on Unix 2020-11-23 10:23:34 -05:00
core doc: fix typo in --engine flag docs 2021-05-08 15:35:44 -04:00
globset doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
grep doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
ignore ignore/types: add po files to supported types 2021-05-28 12:06:10 -04:00
matcher doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
pcre2 doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
printer printer: fix --vimgrep for multi-line mode 2021-05-15 08:27:59 -04:00
regex impl: fix --multiline anchored match bug 2021-05-29 07:37:28 -04:00
searcher searcher: update outdated comment for buffer size 2021-03-31 08:18:38 -04:00