Skip to content

Commit aa92503

Browse files
committed
[javascript mode] Support s regexp flag
Issue #5396
1 parent 3eaa89b commit aa92503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/javascript/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
9696
return ret("comment", "comment");
9797
} else if (expressionAllowed(stream, state, 1)) {
9898
readRegexp(stream);
99-
stream.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);
99+
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
100100
return ret("regexp", "string-2");
101101
} else {
102102
stream.eat("=");

0 commit comments

Comments
 (0)