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 b2c0aea commit d3b852cCopy full SHA for d3b852c
crates/cargo-test-support/src/compare.rs
@@ -229,6 +229,12 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) {
229
.unwrap();
230
subs.insert("[HASH]", regex!(r"/[a-z0-9\-_]+-(?<redacted>[0-9a-f]{16})"))
231
232
+ // Match multi-part hashes like `06/b451d0d6f88b1d` used in directory paths
233
+ subs.insert("[HASH]", regex!(r"/(?<redacted>[a-f0-9]{2}\/[0-9a-f]{14})"))
234
+ .unwrap();
235
+ // Match file name hashes like `foo-06b451d0d6f88b1d`
236
+ subs.insert("[HASH]", regex!(r"[a-z0-9]+-(?<redacted>[a-f0-9]{16})"))
237
238
subs.insert(
239
"[AVG_ELAPSED]",
240
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?) ns/iter"),
0 commit comments