1
0

Merge pull request #12 from mixmaxhq/fix-variable-error

Fix implicit global variable that threw an exception when used in str…
This commit is contained in:
Julien Buty
2016-10-28 13:35:49 +08:00
committed by GitHub

View File

@@ -61,6 +61,7 @@ exports.parse = function (string, options) {
// Reverse to ensure proper order when pop()'ing. // Reverse to ensure proper order when pop()'ing.
terms.reverse(); terms.reverse();
// For each search term // For each search term
var term;
while (term = terms.pop()) { while (term = terms.pop()) {
// Advanced search terms syntax has key and value // Advanced search terms syntax has key and value
// separated with a colon // separated with a colon