Fix crash report stack traces

This commit is contained in:
Fedor Indutny
2026-01-07 19:04:38 +01:00
committed by GitHub
parent 992bfbf0e7
commit a500ee9a0f
2 changed files with 25 additions and 2 deletions

View File

@@ -85,6 +85,17 @@ describe('Privacy', () => {
`;
assert.equal(actual, expected);
});
it('should not redact hex stack traces', () => {
const text = `
"address": "0x0000000012345678",
"address": "0x12345678",
"address": "0x00000000000000f0",
`;
const actual = Privacy.redactCardNumbers(text);
assert.equal(actual, text);
});
});
describe('redactPhoneNumbers', () => {