Function
isPIIColumn
(
key: string,
columns: readonly string[] = DEFAULT_PII_COLUMNS,
patterns: readonly RegExp[] = [],
)
Source from the content-addressed store, hash-verified
| 174 | * OR across the two lists: any substring hit OR any regex hit flags the key. |
| 175 | */ |
| 176 | export function isPIIColumn( |
| 177 | key: string, |
| 178 | columns: readonly string[] = DEFAULT_PII_COLUMNS, |
| 179 | patterns: readonly RegExp[] = [], |
| 180 | ): boolean { |
| 181 | return matchPIIColumn(key, columns, patterns) !== null; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Mask a value matched by column-name heuristic. Tries specific pattern masks |