mirror of https://github.com/gorhill/uBlock.git
trivial test to workaround potential bad filters
This commit is contained in:
parent
94dd2b3d86
commit
51a6c8beba
|
@ -1538,6 +1538,12 @@ FilterParser.prototype.parse = function(s) {
|
|||
s = trimChar(s, '*');
|
||||
}
|
||||
|
||||
// nothing left?
|
||||
if ( s === '' ) {
|
||||
this.unsupported = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
// plain hostname?
|
||||
this.hostnamePure = this.hostnameAnchored && reHostnameRule.test(s);
|
||||
|
||||
|
|
Loading…
Reference in New Issue