[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:
Raymond Hill 2025-05-11 07:32:32 -04:00
parent a83be19987
commit 3292f128d2
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

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