You've already forked search-query-parser
moving ; 😆
This commit is contained in:
@@ -52,7 +52,7 @@ exports.parse = function (string, options) {
|
|||||||
});
|
});
|
||||||
terms[i] = key + ':' + val;
|
terms[i] = key + ':' + val;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
// 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
|
||||||
@@ -99,7 +99,7 @@ exports.parse = function (string, options) {
|
|||||||
else {
|
else {
|
||||||
// Put both the current value and the new
|
// Put both the current value and the new
|
||||||
// value in an array
|
// value in an array
|
||||||
query[key] = [query[key]]
|
query[key] = [query[key]];
|
||||||
query[key].push(value);
|
query[key].push(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user