mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
fix regression from a7fe367eec
: 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
Block a user