summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-02-27 17:42:14 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-02-27 17:42:14 -0500
commitf19b84fb23e94eb3a738f55d89c3a65225ac4bb3 (patch)
treecf83062fc471a3a95c1a01883e35f6fd3b46e240 /tests
parent59fc583aebf81d757a4477b4fec8510221afaa3d (diff)
regex: bump regex dep to fix match bug
See * https://github.com/rust-lang/regex/commit/661bf53d5b2b6dde25549aaad601ad8c59b37bfd * https://github.com/rust-lang/regex/commit/edf45e6f5fa54705298ba14f3216cfb5277c0908 for details on the bug fix, which was in the regex engine. Fixes #1203
Diffstat (limited to 'tests')
-rw-r--r--tests/regression.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/regression.rs b/tests/regression.rs
index 98e5b17a..76a7b0b6 100644
--- a/tests/regression.rs
+++ b/tests/regression.rs
@@ -694,3 +694,14 @@ rgtest!(r1176_line_regex, |dir: Dir, mut cmd: TestCommand| {
cmd.arg("-x").arg("-f").arg("patterns").arg("test").stdout()
);
});
+
+// See: https://github.com/BurntSushi/ripgrep/issues/1203
+rgtest!(r1203_reverse_suffix_literal, |dir: Dir, _: TestCommand| {
+ dir.create("test", "153.230000\n");
+
+ let mut cmd = dir.command();
+ eqnice!("153.230000\n", cmd.arg(r"\d\d\d00").arg("test").stdout());
+
+ let mut cmd = dir.command();
+ eqnice!("153.230000\n", cmd.arg(r"\d\d\d000").arg("test").stdout());
+});