Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
test(designer): fix the flag scoping of a regex used to detect error …
Browse files Browse the repository at this point in the history
…messages

This regex was relying on a bug with flag scoping that was fixed
(rust-lang/regex#640) in regex 1.3.4.
  • Loading branch information
yvt committed Feb 7, 2020
1 parent 2d5796e commit d4a9b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcw3/designer/tests/bad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn run_should_error(source_path: &str) {

// Extract error messages
lazy_static::lazy_static! {
static ref RE: Regex = Regex::new(r#"error: ((?m).+?)\s*--> .*:(\d+):\d+$"#)
static ref RE: Regex = Regex::new(r#"(?m)error: (.+?)\s*--> .*:(\d+):\d+$"#)
.unwrap();
}

Expand Down

0 comments on commit d4a9b91

Please sign in to comment.