Skip to content

Commit

Permalink
fix for NodeJS 4.x and 5.x: no native regex 'u' flag support yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Feb 1, 2017
1 parent b85f1c6 commit 2bdaf8e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/util/lex-parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/ebnf-parser
Submodule ebnf-parser updated 1 files
+15 −0 .travis.yml
2 changes: 1 addition & 1 deletion modules/jison-lex
Submodule jison-lex updated 1 files
+13 −0 .npmignore
2 changes: 1 addition & 1 deletion modules/lex-parser
Submodule lex-parser updated 3 files
+15 −0 .travis.yml
+1 −1 lex-parser.js
+1 −1 lex.y
2 changes: 1 addition & 1 deletion web/content/assets/js/jison.js
Original file line number Diff line number Diff line change
Expand Up @@ -7615,7 +7615,7 @@ case 37:
}
// a 'keyword' starts with an alphanumeric character,
// followed by zero or more alphanumerics or digits:
var re = XRegExp('\\w[\\w\\d]*$', 'u');
var re = new XRegExp('\\w[\\w\\d]*$', XRegExp._registeredFlags()['u'] ? 'u' : '');
if (XRegExp.match(this.$, re)) {
this.$ = yyvstack[$0] + "\\b";
} else {
Expand Down

0 comments on commit 2bdaf8e

Please sign in to comment.