mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 19:33:01 +01:00
Fix https://twitter.com/arneblankerts/status/1075402247725637633, regression @ d3a3505a54 (diff-1c951eedcd0be2e11c02da8fabcc46b5R380)
This commit is contained in:
parent
6bc22ab4ba
commit
540c311438
@ -376,15 +376,15 @@
|
||||
return;
|
||||
}
|
||||
tasks.push([ operator, args ]);
|
||||
if ( i === n ) { break; }
|
||||
opPrefixBeg = i;
|
||||
if ( i === n ) { break; }
|
||||
}
|
||||
// No task found: then we have a CSS selector.
|
||||
// At least one task found: nothing should be left to parse.
|
||||
if ( tasks.length === 0 ) {
|
||||
prefix = raw;
|
||||
tasks = undefined;
|
||||
} else if ( i < n ) {
|
||||
} else if ( opPrefixBeg < n ) {
|
||||
return;
|
||||
}
|
||||
// https://github.com/NanoAdblocker/NanoCore/issues/1#issuecomment-354394894
|
||||
|
Loading…
Reference in New Issue
Block a user