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.
x.ys
1 parent 42de3d1 commit d59f3bbCopy full SHA for d59f3bb
apps/oxlint/src/tester.rs
@@ -99,7 +99,7 @@ impl Tester {
99
settings.set_snapshot_suffix("oxlint");
100
101
let output_string = &String::from_utf8(output).unwrap();
102
- let regex = Regex::new(r"\d+ms").unwrap();
+ let regex = Regex::new(r"\d+(?:\.\d+)?s|\d+ms").unwrap();
103
let output_string = regex.replace_all(output_string, "<variable>ms").into_owned();
104
let regex = Regex::new(r#""start_time": \d+\.\d+"#).unwrap();
105
let output_string = regex.replace_all(&output_string, r#""start_time": <variable>"#);
0 commit comments