You've already forked search-query-parser
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user