diff --git a/tcw3/designer/tests/bad.rs b/tcw3/designer/tests/bad.rs index 320d6a0b..ff0c80c9 100644 --- a/tcw3/designer/tests/bad.rs +++ b/tcw3/designer/tests/bad.rs @@ -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(); }