File tree Expand file tree Collapse file tree 5 files changed +475
-1
lines changed
crates/cargo-test-support Expand file tree Collapse file tree 5 files changed +475
-1
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cargo-test-support"
3
- version = " 0.8.1 "
3
+ version = " 0.9.0 "
4
4
edition.workspace = true
5
5
rust-version = " 1.89" # MSRV:1
6
6
license.workspace = true
Original file line number Diff line number Diff line change @@ -229,6 +229,12 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) {
229
229
. unwrap ( ) ;
230
230
subs. insert ( "[HASH]" , regex ! ( r"/[a-z0-9\-_]+-(?<redacted>[0-9a-f]{16})" ) )
231
231
. unwrap ( ) ;
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
+ . unwrap ( ) ;
232
238
subs. insert (
233
239
"[AVG_ELAPSED]" ,
234
240
regex ! ( r"(?<redacted>[0-9]+(\.[0-9]+)?) ns/iter" ) ,
You can’t perform that action at this time.
0 commit comments