We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2e307 commit 954df37Copy full SHA for 954df37
javascript/extractor/src/com/semmle/jcorn/Parser.java
@@ -787,7 +787,7 @@ private Token readRegexp() {
787
if (mods != null) {
788
String validFlags = "gim";
789
if (this.options.ecmaVersion() >= 6) validFlags = "gimuy";
790
- if (this.options.ecmaVersion() >= 9) validFlags = "gimsuy";
+ if (this.options.ecmaVersion() >= 9) validFlags = "gimsuvy";
791
if (!mods.matches("^[" + validFlags + "]*$"))
792
this.raise(start, "Invalid regular expression flag");
793
if (mods.indexOf('u') >= 0) {
0 commit comments