Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jun 26, 2018
1 parent d9010ef commit 138e1bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/js/static-ext-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,17 +481,20 @@
};

// https:/chrisaljoudi/uBlock/issues/1004
// Detect and report invalid CSS selectors.
// Detect and report invalid CSS selectors.

// Discard new ABP's `-abp-properties` directive until it is
// implemented (if ever). Unlikely, see:
// https:/gorhill/uBlock/issues/1752

// https:/gorhill/uBlock/issues/2624
// Convert Adguard's `-ext-has='...'` into uBO's `:has(...)`.
// Convert Adguard's `-ext-has='...'` into uBO's `:has(...)`.

// https:/uBlockOrigin/uBlock-issues/issues/89
// Do not discard unknown pseudo-elements.

api.compileSelector = (function() {
var reAfterBeforeSelector = /^(.+?)(::?after|::?before)$/,
var reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-])$/,
reStyleSelector = /^(.+?):style\((.+?)\)$/,
reStyleBad = /url\([^)]+\)/,
reExtendedSyntax = /\[-(?:abp|ext)-[a-z-]+=(['"])(?:.+?)(?:\1)\]/,
Expand Down

0 comments on commit 138e1bf

Please sign in to comment.