Fix silly test

Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/1755#discussioncomment-12769044

Related commit:
8b696a691a
This commit is contained in:
Raymond Hill 2025-04-08 15:42:00 -04:00
parent 2bb6999e3f
commit eb7f23b173
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -198,7 +198,7 @@ export class StaticExtFilteringHostnameDB {
}
if ( hn.endsWith(matcher.hn) === false ) { return false; }
if ( hn.length !== matcher.hn.length ) {
if ( hn.at(-1) !== '.' ) { return false; }
if ( hn.at(hn.length - matcher.hn.length - 1) !== '.' ) { return false; }
}
return pn.startsWith(matcher.pn);
}