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() ) {
|
||||
if ( bad ) { continue; }
|
||||
if ( not && exception ) { continue; }
|
||||
isGeneric = false;
|
||||
if ( isRegexOrPath(hn) ) { continue; }
|
||||
if ( details === undefined ) {
|
||||
context.specificCosmeticFilters.set(compiled, details = {});
|
||||
|
|
@ -248,7 +249,6 @@ function addExtendedToDNR(context, parser) {
|
|||
details.matches = [ '*' ];
|
||||
continue;
|
||||
}
|
||||
isGeneric = false;
|
||||
details.matches.push(hn);
|
||||
}
|
||||
if ( details === undefined ) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue