mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
again, no need to capture in regex
This commit is contained in:
parent
c5c8edc4d1
commit
e847d7f9f4
@ -773,7 +773,7 @@ FilterContainer.prototype.compileGenericSelector = function(parsed, out) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
FilterContainer.prototype.reClassOrIdSelector = /^([#.][\w-]+)$/;
|
FilterContainer.prototype.reClassOrIdSelector = /^[#.][\w-]+$/;
|
||||||
FilterContainer.prototype.rePlainSelector = /^[#.][\w-]+/;
|
FilterContainer.prototype.rePlainSelector = /^[#.][\w-]+/;
|
||||||
FilterContainer.prototype.reHighLow = /^[a-z]*\[(?:alt|title)="[^"]+"\]$/;
|
FilterContainer.prototype.reHighLow = /^[a-z]*\[(?:alt|title)="[^"]+"\]$/;
|
||||||
FilterContainer.prototype.reHighMedium = /^\[href\^="https?:\/\/([^"]{8})[^"]*"\]$/;
|
FilterContainer.prototype.reHighMedium = /^\[href\^="https?:\/\/([^"]{8})[^"]*"\]$/;
|
||||||
|
Loading…
Reference in New Issue
Block a user