mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
fix #2249
This commit is contained in:
parent
c39adacc50
commit
cec17097a4
1 changed files with 2 additions and 2 deletions
|
@ -1735,7 +1735,7 @@ FilterContainer.prototype.getFilterClass = function(details) {
|
||||||
if ( details.isRegex ) {
|
if ( details.isRegex ) {
|
||||||
return FilterRegexHostname;
|
return FilterRegexHostname;
|
||||||
}
|
}
|
||||||
if ( this.reIsGeneric.test(s) ) {
|
if ( this.reIsGeneric.test(s) || details.token === '*' ) {
|
||||||
if ( details.hostnameAnchored ) {
|
if ( details.hostnameAnchored ) {
|
||||||
return FilterGenericHnAnchoredHostname;
|
return FilterGenericHnAnchoredHostname;
|
||||||
}
|
}
|
||||||
|
@ -1766,7 +1766,7 @@ FilterContainer.prototype.getFilterClass = function(details) {
|
||||||
if ( details.isRegex ) {
|
if ( details.isRegex ) {
|
||||||
return FilterRegex;
|
return FilterRegex;
|
||||||
}
|
}
|
||||||
if ( this.reIsGeneric.test(s) ) {
|
if ( this.reIsGeneric.test(s) || details.token === '*' ) {
|
||||||
if ( details.hostnameAnchored ) {
|
if ( details.hostnameAnchored ) {
|
||||||
return FilterGenericHnAnchored;
|
return FilterGenericHnAnchored;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue