Hi, it will be nice to have this part configurable:
|
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { |
|
if (!givenKey) { |
|
return; |
current output:
qs.parse("=1&=2") === {}
qs.parse(" =1& =2") === { " ": ["1","2"] }
expected output :
qs.parse("=1&=2", { allowEmptyKeys: true }) === { "": ["1","2"] }
If you are ok - I can open a PR
Hi, it will be nice to have this part configurable:
qs/lib/parse.js
Lines 150 to 152 in 542a5c7
current output:
expected output :
If you are ok - I can open a PR