From aac6c091c208622adb14e63b8235f981ede161fc Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 13 Sep 2016 09:03:00 -0400 Subject: [PATCH] fix regression from a7fe367eecf2af16d07e8ec69743638cd2b05adf: see https://github.com/uBlockOrigin/uAssets/issues/138#issuecomment-246666723 --- src/js/reverselookup-worker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/reverselookup-worker.js b/src/js/reverselookup-worker.js index ed4f91004..17a99a981 100644 --- a/src/js/reverselookup-worker.js +++ b/src/js/reverselookup-worker.js @@ -157,9 +157,9 @@ var fromCosmeticFilter = function(details) { var domain = details.domain; pos = domain.indexOf('.'); if ( pos !== -1 ) { - var entity = domain.slice(0, pos); - candidates[entity + '.*##' + filter] = new RegExp( - ['c', 'e', reEscape(entity), reEscape(filter)].join('\\v') + + var entity = domain.slice(0, pos) + '.*'; + candidates[entity + '##' + filter] = new RegExp( + ['c', 'h', '\\w+', reEscape(entity), reEscape(filter)].join('\\v') + '(?:\\n|$)' ); }