diff --git a/parser.js b/parser.js index b23ed9f..47e0029 100644 --- a/parser.js +++ b/parser.js @@ -631,7 +631,7 @@ // PatternCharacter return createCharacter(res); } - else if (!hasUnicodeFlag && (res = matchReg(/^[^^$\\.*+?(){[|]/))) { + else if (!hasUnicodeFlag && (res = matchReg(/^(?:]|})/))) { // ExtendedPatternCharacter return createCharacter(res); }