mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-25 17:21:57 -07:00
regex: update regression test
Sadly, PCRE2 has different behavior (but doesn't panic). We should look into that, but for now, this is good enough. Also, update the CHANGELOG. Ref #1891
This commit is contained in:
@@ -1032,6 +1032,13 @@ rgtest!(r1878, |dir: Dir, _: TestCommand| {
|
||||
|
||||
// See: https://github.com/BurntSushi/ripgrep/issues/1891
|
||||
rgtest!(r1891, |dir: Dir, mut cmd: TestCommand| {
|
||||
// TODO: Sadly, PCRE2 has different behavior here. Not clear why. We should
|
||||
// look into this and see if there's a fix needed at the regex engine
|
||||
// level.
|
||||
if dir.is_pcre2() {
|
||||
return;
|
||||
}
|
||||
|
||||
dir.create("test", "\n##\n");
|
||||
// N.B. We use -o here to force the issue to occur, which seems to only
|
||||
// happen when each match needs to be detected.
|
||||
|
Reference in New Issue
Block a user