mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix broken reverse lookup of filter lists
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/3684
Regression from:
8b696a691a
This commit is contained in:
parent
8d24b7130c
commit
527b4a201f
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ const fromExtendedFilter = function(details) {
|
|||
const regexTargetMatchesURL = target => {
|
||||
const pathPos = target.indexOf('\\/');
|
||||
if ( pathPos === -1 ) {
|
||||
return regexTargetMatchesHostname(target.slice(1, -1));
|
||||
return regexTargetMatchesHostname(target);
|
||||
}
|
||||
return regexTargetMatchesHostname(`${target.slice(1, pathPos)}$`) &&
|
||||
(new RegExp(`^${target.slice(pathPos, -1)}`)).test(pathname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue