Skip to content

Commit 527b4a2

Browse files
committed
Fix broken reverse lookup of filter lists
Related feedback: uBlockOrigin/uBlock-issues#3684 Regression from: 8b696a6
1 parent 8d24b71 commit 527b4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/reverselookup-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const fromExtendedFilter = function(details) {
163163
const regexTargetMatchesURL = target => {
164164
const pathPos = target.indexOf('\\/');
165165
if ( pathPos === -1 ) {
166-
return regexTargetMatchesHostname(target.slice(1, -1));
166+
return regexTargetMatchesHostname(target);
167167
}
168168
return regexTargetMatchesHostname(`${target.slice(1, pathPos)}$`) &&
169169
(new RegExp(`^${target.slice(pathPos, -1)}`)).test(pathname);

0 commit comments

Comments
 (0)