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

Failed to parse key with square brackets mixed with dots #95

Open
nevill opened this issue Jan 16, 2014 · 0 comments
Open

Failed to parse key with square brackets mixed with dots #95

nevill opened this issue Jan 16, 2014 · 0 comments

Comments

@nevill
Copy link

nevill commented Jan 16, 2014

The expected result of qs.parse('a=1.2&b[0].c=3') should be

 { a: '1.2', 'b[0].c': '3' }

In fact we get

{ a: '1.2', b: { '0].': '3' } }

Just for a note, stringify works well

> qs.stringify({ a: '1.2', 'b[0].c': '3' })
'a=1.2&b%5B0%5D.c=3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant