Commit 663a35b
authored
test: expand stripControlCharacters edge-case coverage (#554)
- Empty string and printable-only strings pass through unchanged.
- Boundary controls NUL (0x00), US (0x1F), and DEL (0x7F).
- Multiple control characters stripped in one string.
Addresses review feedback on regex /[\x00-\x1F\x7F]/g coverage from #553.1 parent d3e9c20 commit 663a35b
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
10 | 32 | | |
0 commit comments