This commit is contained in:
gorhill 2015-12-11 06:36:28 -05:00
parent 3dfc38d892
commit 8f0d925bdf
1 changed files with 6 additions and 0 deletions

View File

@ -1574,6 +1574,12 @@ FilterParser.prototype.parse = function(raw) {
s = '*';
}
// https://github.com/gorhill/uBlock/issues/1047
// Hostname-anchored makes no sense if matching all requests.
if ( s === '*' ) {
this.hostnameAnchored = false;
}
// plain hostname?
this.hostnamePure = this.hostnameAnchored && reHostnameRule.test(s);