mirror of https://github.com/gorhill/uBlock.git
Nothing can come after action operator in procedural cosmetic filters
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2760
This commit is contained in:
parent
b4ffd16db6
commit
a3a2ac5ec0
|
@ -3479,11 +3479,11 @@ class ExtSelectorCompiler {
|
|||
const prelude = [];
|
||||
const tasks = [];
|
||||
for ( const part of parts ) {
|
||||
if ( out.action !== undefined ) { return; }
|
||||
const { data } = part;
|
||||
switch ( data.type ) {
|
||||
case 'ActionSelector': {
|
||||
if ( details.noaction ) { return; }
|
||||
if ( out.action !== undefined ) { return; }
|
||||
if ( prelude.length !== 0 ) {
|
||||
if ( tasks.length === 0 ) {
|
||||
out.selector = prelude.join('');
|
||||
|
|
Loading…
Reference in New Issue