From 540c31143804187f951b1a1a156125c0861cb4ec Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 19 Dec 2018 17:44:17 -0500 Subject: [PATCH] Fix https://twitter.com/arneblankerts/status/1075402247725637633, regression @ https://github.com/gorhill/uBlock/commit/d3a3505a54678413b6975cd87c63c59336447677#diff-1c951eedcd0be2e11c02da8fabcc46b5R380 --- src/js/static-ext-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index 87101558a..695f6e6da 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -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