this fixes good Adguard filters rejected due to `empty` keyword

This commit is contained in:
gorhill 2015-12-18 12:19:13 -05:00
parent 9b1db96254
commit ce3178cb16
1 changed files with 4 additions and 1 deletions

View File

@ -1429,7 +1429,10 @@ FilterParser.prototype.parseOptions = function(s) {
this.unsupported = true; this.unsupported = true;
break; break;
} }
// Used by Adguard, purpose is unclear -- just ignore for now.
if ( opt === 'empty' ) {
continue;
}
// Unrecognized filter option: ignore whole filter. // Unrecognized filter option: ignore whole filter.
this.unsupported = true; this.unsupported = true;
break; break;