Skip to content

Commit 9441b91

Browse files
committed
Auto merge of #14159 - dieterplex:migrate-git-snapbox, r=weihanglo
test: Migrate git to snapbox Part of #14039. There is a case need to modify regex for file size redaction.
2 parents 8009105 + 32cdb26 commit 9441b91

File tree

2 files changed

+591
-535
lines changed

2 files changed

+591
-535
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
171171
.unwrap();
172172
subs.insert(
173173
"[FILE_SIZE]",
174-
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)([a-zA-Z]i)?)B"),
174+
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?([a-zA-Z]i)?)B\s"),
175175
)
176176
.unwrap();
177177
subs.insert(

0 commit comments

Comments
 (0)