Repository navigation
Commit a151e45
committed
fix(core): redact phone numbers after a JSON escape in serialized text
#244's (?<!\w) lookbehind keeps digits inside longer identifiers intact, but a
JSON-escaped newline, tab or return before a phone number (for example in
serialized metadata) put a word character in front of it and the number was
exported. Also start a match after a backslash escape; long identifiers after
an escape are still not phone numbers.1 parent 4a3b47f commit a151e45
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | | - | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
0 commit comments