again, no need to capture in regex

This commit is contained in:
gorhill 2015-11-05 09:25:16 -05:00
parent c5c8edc4d1
commit e847d7f9f4

View file

@ -773,7 +773,7 @@ FilterContainer.prototype.compileGenericSelector = function(parsed, out) {
}
};
FilterContainer.prototype.reClassOrIdSelector = /^([#.][\w-]+)$/;
FilterContainer.prototype.reClassOrIdSelector = /^[#.][\w-]+$/;
FilterContainer.prototype.rePlainSelector = /^[#.][\w-]+/;
FilterContainer.prototype.reHighLow = /^[a-z]*\[(?:alt|title)="[^"]+"\]$/;
FilterContainer.prototype.reHighMedium = /^\[href\^="https?:\/\/([^"]{8})[^"]*"\]$/;