test: Update HASH redaction for registry files

This commit is contained in:
d1t2 2024-07-14 04:13:17 +08:00
parent a2b58c3dad
commit df43a23235
No known key found for this signature in database
GPG Key ID: A3C939E5A2EFB7BA

View File

@ -188,7 +188,7 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) {
.unwrap();
subs.insert(
"[HASH]",
regex!(r"home/\.cargo/registry/src/-(?<redacted>[a-z0-9]+)"),
regex!(r"home/\.cargo/registry/(cache|index|src)/-(?<redacted>[a-z0-9]+)"),
)
.unwrap();
subs.insert(