Commit 9b85248
committed
regexp: prevent ")" inside character class from terminating group
/([)])/ is currently not handled correctly: the first ")" mistakenly
terminates the jsRegexpGroup and consequently the jsRegexpCharClass,
since the former contains the latter.
This commit adds a skip pattern to prevent a ")" character inside a
character class from terminating a jsRegexpGroup.1 parent 51a337b commit 9b85248
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments