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

key=null parsing to null, not the string "null" #381

Closed
bombillazo opened this issue Feb 27, 2024 · 1 comment
Closed

key=null parsing to null, not the string "null" #381

bombillazo opened this issue Feb 27, 2024 · 1 comment

Comments

@bombillazo
Copy link

bombillazo commented Feb 27, 2024

Hey, Any reason why queryString.parseUrl() parses a query param with the value null as null and not the string "null"? Heres an output we get when using the function:
image

We expect values to parse to null only when they have the key (no =) format, not if the string value is also "null"

@sindresorhus
Copy link
Owner

Already works like that according to tests: 3d8fbf2

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

2 participants