From 5482703b5788656e7da05ddf2b19128d347aa89e Mon Sep 17 00:00:00 2001 From: Brad Vogel Date: Thu, 27 Oct 2016 18:09:45 -0700 Subject: [PATCH] Fix implicit global variable that threw an exception when used in strict mode. --- lib/search-query-parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/search-query-parser.js b/lib/search-query-parser.js index 690eefc..d92a000 100644 --- a/lib/search-query-parser.js +++ b/lib/search-query-parser.js @@ -61,6 +61,7 @@ exports.parse = function (string, options) { // Reverse to ensure proper order when pop()'ing. terms.reverse(); // For each search term + var term; while (term = terms.pop()) { // Advanced search terms syntax has key and value // separated with a colon