Raymond Hill 2018-12-19 17:44:17 -05:00
parent 6bc22ab4ba
commit 540c311438
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -376,15 +376,15 @@
return; return;
} }
tasks.push([ operator, args ]); tasks.push([ operator, args ]);
if ( i === n ) { break; }
opPrefixBeg = i; opPrefixBeg = i;
if ( i === n ) { break; }
} }
// No task found: then we have a CSS selector. // No task found: then we have a CSS selector.
// At least one task found: nothing should be left to parse. // At least one task found: nothing should be left to parse.
if ( tasks.length === 0 ) { if ( tasks.length === 0 ) {
prefix = raw; prefix = raw;
tasks = undefined; tasks = undefined;
} else if ( i < n ) { } else if ( opPrefixBeg < n ) {
return; return;
} }
// https://github.com/NanoAdblocker/NanoCore/issues/1#issuecomment-354394894 // https://github.com/NanoAdblocker/NanoCore/issues/1#issuecomment-354394894