Skip to content

Commit

Permalink
Auto merge of #14159 - dieterplex:migrate-git-snapbox, r=weihanglo
Browse files Browse the repository at this point in the history
test: Migrate git to snapbox

Part of #14039.

There is a case need to modify regex for file size redaction.
  • Loading branch information
bors committed Jun 28, 2024
2 parents 8009105 + 32cdb26 commit 9441b91
Show file tree
Hide file tree
Showing 2 changed files with 591 additions and 535 deletions.
2 changes: 1 addition & 1 deletion crates/cargo-test-support/src/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
.unwrap();
subs.insert(
"[FILE_SIZE]",
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)([a-zA-Z]i)?)B"),
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?([a-zA-Z]i)?)B\s"),
)
.unwrap();
subs.insert(
Expand Down
Loading

0 comments on commit 9441b91

Please sign in to comment.