mirror of https://github.com/gorhill/uBlock.git
fix regression from a7fe367eecf2af16d07e8ec69743638cd2b05adf: see https://github.com/uBlockOrigin/uAssets/issues/138#issuecomment-246666723
This commit is contained in:
parent
b940050553
commit
aac6c091c2
|
@ -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|$)'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue