mirror of https://github.com/calzoneman/sync.git
Fix regexes not having the /g flag when reloaded from disk
This commit is contained in:
parent
b7cdc0c056
commit
ae5693f3ed
|
@ -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]];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue