1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

Fix regression causing preventing using --prefixed pseudo-elements

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/89#issuecomment-668701495
This commit is contained in:
Raymond Hill 2020-08-04 15:58:32 -04:00
parent 2fd63b61a0
commit dad6599138
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1177,7 +1177,7 @@ Parser.prototype.SelectorCompiler = class {
]);
this.reSimpleSelector = /^[#.][A-Za-z_][\w-]*$/;
this.div = document.createElement('div');
this.rePseudoClass = /:(?::?after|:?before|:[a-z][a-z-]*[a-z])$/;
this.rePseudoClass = /:(?::?after|:?before|:-?[a-z][a-z-]*[a-z])$/;
this.reProceduralOperator = new RegExp([
'^(?:',
Array.from(parser.proceduralOperatorTokens.keys()).join('|'),