You've already forked search-query-parser
honor alwaysArray option for exclusions
This commit is contained in:
@@ -195,7 +195,13 @@ exports.parse = function (string, options) {
|
||||
// Got only a single value this time
|
||||
else {
|
||||
// Record its value as a string
|
||||
exclusion[key] = value;
|
||||
if (options.alwaysArray) {
|
||||
// ...but we always return an array if option alwaysArray is true
|
||||
exclusion[key] = [value];
|
||||
} else {
|
||||
// Record its value as a string
|
||||
exclusion[key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user