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:
Raymond Hill 2023-08-07 13:58:15 -04:00
parent e33d29ac5a
commit 9ac18318af
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ const svgOcean = svgRoot.children[0];
const svgIslands = svgRoot.children[1]; const svgIslands = svgRoot.children[1];
const NoPaths = 'M0 0'; const NoPaths = 'M0 0';
const reCosmeticAnchor = /^#[$?]?#/; const reCosmeticAnchor = /^#(\$|\?|\$\?)?#/;
const epickerId = (( ) => { const epickerId = (( ) => {
const url = new URL(self.location.href); const url = new URL(self.location.href);

View File

@ -44,7 +44,7 @@ if ( pickerRoot !== null ) { return; }
let pickerBootArgs; let pickerBootArgs;
const reCosmeticAnchor = /^#[$?]?#/; const reCosmeticAnchor = /^#(\$|\?|\$\?)?#/;
const netFilterCandidates = []; const netFilterCandidates = [];
const cosmeticFilterCandidates = []; const cosmeticFilterCandidates = [];