We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b48394 commit 48556d9Copy full SHA for 48556d9
crates/formality-core/src/test_util.rs
@@ -41,7 +41,7 @@ use std::fmt::{Debug, Display};
41
/// with `"src/file.rs:LL:CC"`. This makes error messages resilient against changes to the source code.
42
pub fn normalize_paths(s: impl Display) -> String {
43
let s = s.to_string();
44
- let re = regex::Regex::new(r"\([^():]+.rs:\d+:\d+\)").unwrap();
+ let re = regex::Regex::new(r"\([^()]+.rs:\d+:\d+\)").unwrap();
45
re.replace_all(&s, "(src/file.rs:LL:CC)").to_string()
46
}
47
0 commit comments