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 ed8b696 commit 9121077Copy full SHA for 9121077
crates/cargo-test-support/src/compare.rs
@@ -235,6 +235,9 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) {
235
// Match file name hashes like `foo-06b451d0d6f88b1d`
236
subs.insert("[HASH]", regex!(r"[a-z0-9]+-(?<redacted>[a-f0-9]{16})"))
237
.unwrap();
238
+ // Match path hashes like `../06b451d0d6f88b1d/..` used in directory paths
239
+ subs.insert("[HASH]", regex!(r"\/(?<redacted>[0-9a-f]{16})\/"))
240
+ .unwrap();
241
subs.insert(
242
"[AVG_ELAPSED]",
243
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?) ns/iter"),
0 commit comments