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

[fix] comma option enabled value parsing to use strings only #334

Merged
merged 1 commit into from Oct 4, 2019

Conversation

Om4ar
Copy link
Contributor

@Om4ar Om4ar commented Oct 4, 2019

in case of comma enabled .. parsing should check for strings only when using indexOf(',')

fixes: #328

dist/qs.js Outdated Show resolved Hide resolved
lib/parse.js Show resolved Hide resolved
@ljharb ljharb added the parse label Oct 4, 2019
main.js Outdated Show resolved Hide resolved
@ljharb
Copy link
Owner

ljharb commented Oct 4, 2019

The test you added passes without your fix - can you tweak the test so it fails without the fix?

Copy link
Owner

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Om4ar
Copy link
Contributor Author

Om4ar commented Oct 4, 2019

@ljharb thank you
i learned a lot from this

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

Successfully merging this pull request may close these issues.

parse: comma: true assumes string values limits use of decoder
2 participants