diff --git a/lib/search-query-parser.js b/lib/search-query-parser.js index d1f2a4d..ceadc3f 100644 --- a/lib/search-query-parser.js +++ b/lib/search-query-parser.js @@ -52,7 +52,7 @@ exports.parse = function (string, options) { }); terms[i] = key + ':' + val; } - }; + } // Reverse to ensure proper order when pop()'ing. terms.reverse(); // For each search term @@ -99,7 +99,7 @@ exports.parse = function (string, options) { else { // Put both the current value and the new // value in an array - query[key] = [query[key]] + query[key] = [query[key]]; query[key].push(value); } }