From 527b4a201fbfda4de49ca1d255edc2d92e29bad4 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 22 Jun 2025 08:05:34 -0400 Subject: [PATCH] Fix broken reverse lookup of filter lists Related feedback: https://github.com/uBlockOrigin/uBlock-issues/discussions/3684 Regression from: https://github.com/gorhill/uBlock/commit/8b696a691a0871da8200d1806300842d988a4326 --- src/js/reverselookup-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/reverselookup-worker.js b/src/js/reverselookup-worker.js index 35b86ad57..1f14dd4ef 100644 --- a/src/js/reverselookup-worker.js +++ b/src/js/reverselookup-worker.js @@ -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);