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
The arrayFormat parameter seems to be ignored when using a single-element array. Example:
arrayFormat
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' })
will return a=b,c (a=b%2Cc), however, when there is a single array element like in the following example:
a=b,c
a=b%2Cc
qs.stringify({ a: ['b'] }, { arrayFormat: 'comma' })
the library returns a[]=b (a%5B%5D=b)
a[]=b
a%5B%5D=b
This issue started appearing in the latest version 6.10.5. Version 6.10.3 works as expected.
The text was updated successfully, but these errors were encountered:
It’s not a bug; it’s intentional. However, it will be put behind an option; duplicate of #442.
Sorry, something went wrong.
No branches or pull requests
The
arrayFormat
parameter seems to be ignored when using a single-element array.Example:
will return
a=b,c
(a=b%2Cc
), however, when there is a single array element like in the following example:the library returns
a[]=b
(a%5B%5D=b
)This issue started appearing in the latest version 6.10.5. Version 6.10.3 works as expected.
The text was updated successfully, but these errors were encountered: