1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 11:22:44 +01:00
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

View File

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