1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-01 16:33:06 +01:00
gorhill 2016-09-13 09:03:00 -04:00
parent b940050553
commit aac6c091c2

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