Skip to content

Commit

Permalink
Add ext_ubol to tokens recognized by the preparser
Browse files Browse the repository at this point in the history
`ext_ubol` will evaluate to false in uBO, and true in uBO Lite.

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2268
  • Loading branch information
gorhill committed Sep 18, 2022
1 parent a411ccf commit 35f4bdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3156,6 +3156,7 @@ Parser.utils = Parser.prototype.utils = (( ) => {

const preparserTokens = new Map([
[ 'ext_ublock', 'ublock' ],
[ 'ext_ubol', 'ubol' ],
[ 'env_chromium', 'chromium' ],
[ 'env_edge', 'edge' ],
[ 'env_firefox', 'firefox' ],
Expand Down

0 comments on commit 35f4bdd

Please sign in to comment.