query-string 6.12.0 → 6.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -246,7 +246,7 @@ function parse(input, options) {
|
|
|
246
246
|
|
|
247
247
|
// Missing `=` should be `null`:
|
|
248
248
|
// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
|
|
249
|
-
value = value === undefined ? null : options.arrayFormat
|
|
249
|
+
value = value === undefined ? null : ['comma', 'separator'].includes(options.arrayFormat) ? value : decode(value, options);
|
|
250
250
|
formatter(decode(key, options), value, ret);
|
|
251
251
|
}
|
|
252
252
|
|