Skip to content

Commit

Permalink
regexp.compile is deprecated, fixing this
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaiValentin committed Sep 28, 2019
1 parent 637aa8c commit 5a25daf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tinyseg.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
}
this.chartype_ = [];
for (var i in patterns) {
var regexp = new RegExp;
regexp.compile(i)
var regexp = new RegExp(i);
this.chartype_.push([regexp, patterns[i]]);
}

Expand Down

0 comments on commit 5a25daf

Please sign in to comment.