Commit 9378452
praison
fix(pii): remove false-positive \d{16} CC regex — matches timestamps/trace IDs
@claude: The bare \b\d{16}\b branch matched ANY 16-digit sequence (UNIX microsecond
timestamps, distributed trace IDs, order/invoice numbers) causing false-positive
redactions in LLM tool outputs and RAG results. Removed — the canonical 4-group
pattern (?:\d{4}[ -]){3}\d{4} covers real-world formatted cards with near-zero FP rate.1 parent d2c8922 commit 9378452
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
0 commit comments