diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index b22cd0a59..4958bbb6f 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -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);