add missing flag argument
This commit is contained in:
parent
f1c4eab550
commit
8f20a8f557
1 changed files with 2 additions and 2 deletions
|
|
@ -37,12 +37,12 @@
|
||||||
|
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
|
|
||||||
var Tokenizer = function(rules) {
|
var Tokenizer = function(rules, flag) {
|
||||||
|
flag = flag ? "g" + flag : "g";
|
||||||
this.rules = rules;
|
this.rules = rules;
|
||||||
|
|
||||||
this.regExps = {};
|
this.regExps = {};
|
||||||
this.matchMappings = {};
|
this.matchMappings = {};
|
||||||
var flag = flag ? "g" + flag : "g";
|
|
||||||
for ( var key in this.rules) {
|
for ( var key in this.rules) {
|
||||||
var rule = this.rules[key];
|
var rule = this.rules[key];
|
||||||
var state = rule;
|
var state = rule;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue