mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 08:52:26 +02:00
this fixes #1047
This commit is contained in:
parent
3dfc38d892
commit
8f0d925bdf
@ -1574,6 +1574,12 @@ FilterParser.prototype.parse = function(raw) {
|
|||||||
s = '*';
|
s = '*';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/1047
|
||||||
|
// Hostname-anchored makes no sense if matching all requests.
|
||||||
|
if ( s === '*' ) {
|
||||||
|
this.hostnameAnchored = false;
|
||||||
|
}
|
||||||
|
|
||||||
// plain hostname?
|
// plain hostname?
|
||||||
this.hostnamePure = this.hostnameAnchored && reHostnameRule.test(s);
|
this.hostnamePure = this.hostnameAnchored && reHostnameRule.test(s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user