mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
oops, *
is a valid hostname placeholder
This commit is contained in:
parent
29269617ab
commit
6450afefda
@ -542,7 +542,9 @@ Matrix.prototype.fromString = function(text, append) {
|
|||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/1082
|
// https://github.com/gorhill/uBlock/issues/1082
|
||||||
// Discard rules with invalid hostnames
|
// Discard rules with invalid hostnames
|
||||||
if ( reBadHostname.test(srcHostname) || reBadHostname.test(desHostname) ) {
|
if ( (srcHostname !== '*' && reBadHostname.test(srcHostname)) ||
|
||||||
|
(desHostname !== '*' && reBadHostname.test(desHostname))
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user