summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-04-01 20:34:39 -0400
committerAndrew Gallant <jamslam@gmail.com>2020-04-01 20:37:48 -0400
commit1c4b5adb7b4a239e433d4a1dc2aa4b09ee30573d (patch)
treea4947ad1f3e1676c9b578b7091dcf4901fea6a3f /tests
parent3d6a58faffc025861a977a8c09375d96a9b1452c (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/regression.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regression.rs b/tests/regression.rs
index 89297b9c..6cdf8b99 100644
--- a/tests/regression.rs
+++ b/tests/regression.rs
@@ -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());
+});