mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-01 16:33:06 +01:00
Fix parsing of queryprune=*
in static filtering parser
This commit is contained in:
parent
b48f9b8ba4
commit
43cb63f80a
@ -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 New Issue
Block a user