Closed jerrylian-db closed 2 years ago
This test case fails:
st.deepEqual(qs.parse('foo=bar%2Ctee', { comma: true }), { foo: ['bar', 'tee'] });
Instead, qs.parse('foo=bar%2Ctee', { comma: true }) equals {foo: 'bar,tee'}
qs.parse('foo=bar%2Ctee', { comma: true })
{foo: 'bar,tee'}
In other words, when a user stringifies an array with encoding, the decoding doesn't work.
Nevermind, this issue was resolved by using encodeValueOnly=true when stringifying.
encodeValueOnly=true
This test case fails:
Instead,
qs.parse('foo=bar%2Ctee', { comma: true })
equals{foo: 'bar,tee'}
In other words, when a user stringifies an array with encoding, the decoding doesn't work.