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