This commit is contained in:
gorhill 2016-12-19 00:30:14 -05:00
parent c39adacc50
commit cec17097a4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}