mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Mind discarded regex- or path-based entries when determining genericity
Related issue: https://github.com/uBlockOrigin/uAssets/issues/28260
This commit is contained in:
parent
a83be19987
commit
3292f128d2
1 changed files with 1 additions and 1 deletions
|
|
@ -226,6 +226,7 @@ function addExtendedToDNR(context, parser) {
|
||||||
for ( const { hn, not, bad } of parser.getExtFilterDomainIterator() ) {
|
for ( const { hn, not, bad } of parser.getExtFilterDomainIterator() ) {
|
||||||
if ( bad ) { continue; }
|
if ( bad ) { continue; }
|
||||||
if ( not && exception ) { continue; }
|
if ( not && exception ) { continue; }
|
||||||
|
isGeneric = false;
|
||||||
if ( isRegexOrPath(hn) ) { continue; }
|
if ( isRegexOrPath(hn) ) { continue; }
|
||||||
if ( details === undefined ) {
|
if ( details === undefined ) {
|
||||||
context.specificCosmeticFilters.set(compiled, details = {});
|
context.specificCosmeticFilters.set(compiled, details = {});
|
||||||
|
|
@ -248,7 +249,6 @@ function addExtendedToDNR(context, parser) {
|
||||||
details.matches = [ '*' ];
|
details.matches = [ '*' ];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
isGeneric = false;
|
|
||||||
details.matches.push(hn);
|
details.matches.push(hn);
|
||||||
}
|
}
|
||||||
if ( details === undefined ) { return; }
|
if ( details === undefined ) { return; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue