We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
Maybe I'm mistaken, but I think when duplicates is set to "last", it should not apply to arrays without indices:
duplicates
"last"
qs.parse("a=1&a=2&b[]=1&b[]=2", {duplicates: "last"}) results in { a: '2', b: [ '2' ] }
qs.parse("a=1&a=2&b[]=1&b[]=2", {duplicates: "last"})
{ a: '2', b: [ '2' ] }
Where a is correct, but b was not what I expected.
a
b
The text was updated successfully, but these errors were encountered:
I agree, this is a bug.
Sorry, something went wrong.
No branches or pull requests
Hi!
Maybe I'm mistaken, but I think when
duplicates
is set to"last"
, it should not apply to arrays without indices:qs.parse("a=1&a=2&b[]=1&b[]=2", {duplicates: "last"})
results in
{ a: '2', b: [ '2' ] }
Where
a
is correct, butb
was not what I expected.The text was updated successfully, but these errors were encountered: