1
0

honor alwaysArray option for exclusions

This commit is contained in:
Russell Schick
2019-04-24 12:22:02 -07:00
parent 60e8120929
commit baa4353a1f
4 changed files with 21 additions and 7 deletions

View File

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