Skip to content
New issue

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

comma and bracket combined? #327

Closed
RobMayer opened this issue Aug 10, 2019 · 2 comments · Fixed by #335
Closed

comma and bracket combined? #327

RobMayer opened this issue Aug 10, 2019 · 2 comments · Fixed by #335

Comments

@RobMayer
Copy link

RobMayer commented Aug 10, 2019

parse("foo[]=1,2,3&foo[]=4,5,6", {comma: true})
/*
expected { foo: [ [ 1, 2, 3 ], [4, 5, 6] ] }
received { foo: [ 1, 2, 3, 4, 5, 6 ] }

*/

uncertain if this is intentional or not

@ljharb
Copy link
Owner

ljharb commented Aug 16, 2019

This actually does seem like a bug, thanks.

@RobMayer
Copy link
Author

Glad to be of service.
For what it's worth, it works as intended if you force the index in the url string:
?a[0]=1,2,3&a[1]=4,5,6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants