Skip to content

Commit df43a23

Browse files
committed
test: Update HASH redaction for registry files
1 parent a2b58c3 commit df43a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cargo-test-support/src/compare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) {
188188
.unwrap();
189189
subs.insert(
190190
"[HASH]",
191-
regex!(r"home/\.cargo/registry/src/-(?<redacted>[a-z0-9]+)"),
191+
regex!(r"home/\.cargo/registry/(cache|index|src)/-(?<redacted>[a-z0-9]+)"),
192192
)
193193
.unwrap();
194194
subs.insert(

0 commit comments

Comments
 (0)