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.reSimpleSelector = /^[#.][A-Za-z_][\w-]*$/;
this.div = document.createElement('div'); 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([ this.reProceduralOperator = new RegExp([
'^(?:', '^(?:',
Array.from(parser.proceduralOperatorTokens.keys()).join('|'), Array.from(parser.proceduralOperatorTokens.keys()).join('|'),