From cec17097a4aad8387e03b6016228f0b10b36ca0d Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 19 Dec 2016 00:30:14 -0500 Subject: [PATCH] fix #2249 --- src/js/static-net-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 4d6550b4b..85434ce9d 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -1735,7 +1735,7 @@ FilterContainer.prototype.getFilterClass = function(details) { if ( details.isRegex ) { return FilterRegexHostname; } - if ( this.reIsGeneric.test(s) ) { + if ( this.reIsGeneric.test(s) || details.token === '*' ) { if ( details.hostnameAnchored ) { return FilterGenericHnAnchoredHostname; } @@ -1766,7 +1766,7 @@ FilterContainer.prototype.getFilterClass = function(details) { if ( details.isRegex ) { return FilterRegex; } - if ( this.reIsGeneric.test(s) ) { + if ( this.reIsGeneric.test(s) || details.token === '*' ) { if ( details.hostnameAnchored ) { return FilterGenericHnAnchored; }