1
0

Fix implicit global variable that threw an exception when used in strict mode.

This commit is contained in:
Brad Vogel
2016-10-27 18:09:45 -07:00
parent 180a449c5e
commit 5482703b57

View File

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