(key: string)
| 70 | ] |
| 71 | |
| 72 | export function isSensitiveKey(key: string): boolean { |
| 73 | if (BYPASS_REDACTION_KEYS.has(key)) { |
| 74 | return false |
| 75 | } |
| 76 | const lowerKey = key.toLowerCase() |
| 77 | return SENSITIVE_KEY_PATTERNS.some((pattern) => pattern.test(lowerKey)) |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Redacts sensitive patterns from a string value |
no test coverage detected