diff options
author | Andrew Gallant <jamslam@gmail.com> | 2021-05-31 19:00:56 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2021-05-31 21:51:18 -0400 |
commit | ee23ab51736d35028c7f3eee23295429377742b4 (patch) | |
tree | 2e43d4ded4f3e76e5b6a8c68c6bc005ec8a326a3 /CHANGELOG.md | |
parent | efd9cfb2fc1f0233de9eda4c03416d32ef2c3ce8 (diff) |
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
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ba9bd56..2144c5e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,8 @@ Bug fixes: Document cygwin path translation behavior in the FAQ. * [BUG #1311](https://github.com/BurntSushi/ripgrep/issues/1311): Fix multi-line bug where a search & replace for `\n` didn't work as expected. +* [BUG #1401](https://github.com/BurntSushi/ripgrep/issues/1401): + Fix buggy interaction between PCRE2 look-around and `-o/--only-matching`. * [BUG #1412](https://github.com/BurntSushi/ripgrep/issues/1412): Fix multi-line bug with searches using look-around past matching lines. * [BUG #1642](https://github.com/BurntSushi/ripgrep/issues/1642): |