diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index 5d27d4a86..dea5ad303 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -494,7 +494,7 @@ // Do not discard unknown pseudo-elements. api.compileSelector = (function() { - var reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-])$/, + var reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-]+)$/, reStyleSelector = /^(.+?):style\((.+?)\)$/, reStyleBad = /url\([^)]+\)/, reExtendedSyntax = /\[-(?:abp|ext)-[a-z-]+=(['"])(?:.+?)(?:\1)\]/,