Skip to content

Commit

Permalink
Nothing can come after action operator in procedural cosmetic filters
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Aug 9, 2023
1 parent b4ffd16 commit a3a2ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/static-filtering-parser.js
Expand Up @@ -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('');
Expand Down

0 comments on commit a3a2ac5

Please sign in to comment.