fix regression from a7fe367eecf2af16d07e8ec69743638cd2b05adf: see https://github.com/uBlockOrigin/uAssets/issues/138#issuecomment-246666723

This commit is contained in:
gorhill 2016-09-13 09:03:00 -04:00
parent b940050553
commit aac6c091c2
1 changed files with 3 additions and 3 deletions

View File

@ -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|$)'
);
}