Skip to content

Commit

Permalink
regex: bump regex dep to fix match bug
Browse files Browse the repository at this point in the history
See

* rust-lang/regex@661bf53
* rust-lang/regex@edf45e6

for details on the bug fix, which was in the regex engine.

Fixes #1203
  • Loading branch information
BurntSushi committed Feb 27, 2019
1 parent 59fc583 commit f19b84f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions tests/regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});

0 comments on commit f19b84f

Please sign in to comment.