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
When you have a query like ?foo=bar&baz, baz won't have a value.
?foo=bar&baz
baz
When the values get decoded with decode-uri-component, an error will be thrown:
decode-uri-component
TypeError: Expected encodedURI to be of type string, got undefined
encodedURI
string
undefined
I think a check should be performed before decoding the value the prevent this error.
The text was updated successfully, but these errors were encountered:
We already have a test for this:
query-string/test/parse.js
Lines 59 to 62 in cca7295
Submit a pull request with a failing test and I'll take a closer look.
Sorry, something went wrong.
No branches or pull requests
When you have a query like
?foo=bar&baz
,baz
won't have a value.When the values get decoded with
decode-uri-component
, an error will be thrown:I think a check should be performed before decoding the value the prevent this error.
The text was updated successfully, but these errors were encountered: