mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix parsing of queryprune=* in static filtering parser
This commit is contained in:
parent
b48f9b8ba4
commit
43cb63f80a
1 changed files with 4 additions and 0 deletions
|
|
@ -2484,6 +2484,10 @@ const NetOptionsIterator = class {
|
|||
this.optSlices[i+4],
|
||||
this.optSlices[i+5] - 3
|
||||
);
|
||||
if ( val === '*' ) { return true; }
|
||||
if ( val.charCodeAt(0) === 0x21 /* '!' */ ) {
|
||||
val = val.slice(1);
|
||||
}
|
||||
if ( val.startsWith('|') ) { val = `^${val.slice(1)}`; }
|
||||
if ( val.endsWith('|') ) { val = `${val.slice(0,-1)}$`; }
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue