mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-25 17:21:57 -07:00
regex: fix another inner literal bug
It looks like `is_simple` wasn't quite correct. I can't wait until this code is rewritten. It is still not quite clearly correct to me. Fixes #1537
This commit is contained in:
@@ -791,3 +791,11 @@ rgtest!(
|
||||
eqnice!("repotree/not-ignored\n", cmd.stdout());
|
||||
}
|
||||
);
|
||||
|
||||
// See: https://github.com/BurntSushi/ripgrep/issues/1537
|
||||
rgtest!(r1537, |dir: Dir, mut cmd: TestCommand| {
|
||||
dir.create("foo", "abc;de,fg");
|
||||
|
||||
let expected = "foo:abc;de,fg\n";
|
||||
eqnice!(expected, cmd.arg(";(.*,){1}").stdout());
|
||||
});
|
||||
|
Reference in New Issue
Block a user