mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix silly test
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/1755#discussioncomment-12769044
Related commit:
8b696a691a
This commit is contained in:
parent
2bb6999e3f
commit
eb7f23b173
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue