1
0
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:
Raymond Hill 2020-11-23 08:47:29 -05:00
parent b48f9b8ba4
commit 43cb63f80a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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 {