Skip to content

Commit

Permalink
Fix regression breaking filters with --prefixed pseudo-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Aug 4, 2020
1 parent 2fd63b6 commit dae25b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('|'),
Expand Down

0 comments on commit dae25b0

Please sign in to comment.