Commit 33b0b4c
committed
Fix character class trivia matching
Rather than matching and not advancing the input,
we should always return `nil` to never match
against the trivia.1 parent 935d748 commit 33b0b4c
File tree
2 files changed
+11
-4
lines changed- Sources/_StringProcessing
- Tests/RegexTests
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 290 | + | |
293 | 291 | | |
294 | | - | |
295 | 292 | | |
296 | 293 | | |
297 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1211 | 1221 | | |
1212 | 1222 | | |
1213 | 1223 | | |
| |||
0 commit comments