Fix regexes not having the /g flag when reloaded from disk

This commit is contained in:
calzoneman 2013-04-05 21:37:22 -05:00
parent b7cdc0c056
commit ae5693f3ed
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ Channel.prototype.loadDump = function() {
if(data.filters) {
this.filters = new Array(data.filters.length);
for(var i = 0; i < data.filters.length; i++) {
this.filters[i] = [new RegExp(data.filters[i][0]),
this.filters[i] = [new RegExp(data.filters[i][0], "g"),
data.filters[i][1],
data.filters[i][2]];
}