File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ pp.regexp_pattern = function(state) {
152
152
if ( state . eat ( 0x29 /* ) */ ) ) {
153
153
state . raise ( "Unmatched ')'" )
154
154
}
155
- if ( state . eat ( 0x5D /* [ */ ) || state . eat ( 0x7D /* } */ ) ) {
155
+ if ( state . eat ( 0x5D /* ] */ ) || state . eat ( 0x7D /* } */ ) ) {
156
156
state . raise ( "Lone quantifier brackets" )
157
157
}
158
158
}
@@ -837,7 +837,7 @@ pp.regexp_eatCharacterClass = function(state) {
837
837
if ( state . eat ( 0x5B /* [ */ ) ) {
838
838
state . eat ( 0x5E /* ^ */ )
839
839
this . regexp_classRanges ( state )
840
- if ( state . eat ( 0x5D /* [ */ ) ) {
840
+ if ( state . eat ( 0x5D /* ] */ ) ) {
841
841
return true
842
842
}
843
843
// Unreachable since it threw "unterminated regular expression" error before.
@@ -885,7 +885,7 @@ pp.regexp_eatClassAtom = function(state) {
885
885
}
886
886
887
887
const ch = state . current ( )
888
- if ( ch !== 0x5D /* [ */ ) {
888
+ if ( ch !== 0x5D /* ] */ ) {
889
889
state . lastIntValue = ch
890
890
state . advance ( )
891
891
return true
You can’t perform that action at this time.
0 commit comments