diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-02-27 17:42:14 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-02-27 17:42:14 -0500 |
commit | f19b84fb23e94eb3a738f55d89c3a65225ac4bb3 (patch) | |
tree | cf83062fc471a3a95c1a01883e35f6fd3b46e240 /tests/regression.rs | |
parent | 59fc583aebf81d757a4477b4fec8510221afaa3d (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/regression.rs')
-rw-r--r-- | tests/regression.rs | 11 |
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()); +}); |