Precomputed form of a rules object, reused across redact() calls.
| 194 | |
| 195 | /** Precomputed form of a rules object, reused across redact() calls. */ |
| 196 | interface ParsedRules { |
| 197 | sensitiveKeysLower: Set<string> |
| 198 | /** All valuePatterns folded into a single alternation; null when no valid patterns. */ |
| 199 | combinedValueRegex: RegExp | null |
| 200 | statePathPatterns: string[] |
| 201 | /** Cached `statePathPatterns.length > 0` — gates path-string allocation. */ |
| 202 | trackPaths: boolean |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Validate each pattern individually so one bad regex doesn't kill the rest, |
nothing calls this directly
no outgoing calls
no test coverage detected