mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix incorrect hostname matching in urlskip-related code
Related feedback: https://github.com/uBlockOrigin/uBOL-home/issues/278#issuecomment-2664971115
This commit is contained in:
parent
f12351688a
commit
17c66030fe
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ function fragmentFromTemplate(template, placeholder, text, details) {
|
|||
const urlskipLists = await Promise.all(toFetch);
|
||||
const toHn = toURL.hostname;
|
||||
const matchesHn = hn => {
|
||||
if ( hn.endsWith(toHn) === false ) { return false; }
|
||||
if ( toHn.endsWith(hn) === false ) { return false; }
|
||||
if ( hn.length === toHn.length ) { return true; }
|
||||
return toHn.charAt(toHn.length - hn.length - 1) === '.';
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue