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);