mirror of https://github.com/gorhill/uBlock.git
Fix parsing cosmetic filter anchor when using AdGuard/ABP modifiers
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2765
This commit is contained in:
parent
e33d29ac5a
commit
9ac18318af
|
@ -50,7 +50,7 @@ const svgOcean = svgRoot.children[0];
|
|||
const svgIslands = svgRoot.children[1];
|
||||
const NoPaths = 'M0 0';
|
||||
|
||||
const reCosmeticAnchor = /^#[$?]?#/;
|
||||
const reCosmeticAnchor = /^#(\$|\?|\$\?)?#/;
|
||||
|
||||
const epickerId = (( ) => {
|
||||
const url = new URL(self.location.href);
|
||||
|
|
|
@ -44,7 +44,7 @@ if ( pickerRoot !== null ) { return; }
|
|||
|
||||
let pickerBootArgs;
|
||||
|
||||
const reCosmeticAnchor = /^#[$?]?#/;
|
||||
const reCosmeticAnchor = /^#(\$|\?|\$\?)?#/;
|
||||
|
||||
const netFilterCandidates = [];
|
||||
const cosmeticFilterCandidates = [];
|
||||
|
|
Loading…
Reference in New Issue