Skip to content

Commit f98c1ea

Browse files
committed
fix deno regex masking test bypassing mask pipeline
setting maskValuesOfKeys to [] overrode the default ["password"], causing the masking guard to skip the entire pipeline including maskValuesRegEx
1 parent 9f30c84 commit f98c1ea

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/deno_runner.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ Deno.test("circular reference handled gracefully in JSON mode", () => {
124124
Deno.test("regex masking", () => {
125125
const logger = new Logger({
126126
type: "hidden",
127-
maskValuesOfKeys: [],
128127
maskValuesRegEx: [/\d{3}-\d{2}-\d{4}/],
129128
});
130129

0 commit comments

Comments
 (0)