You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, this is a bug; I've added it to the tests and will fix it shortly.
Regarding bug 2: can you file that separately, and we can discuss there?
leoyli
changed the title
Bugs in qs.parse when parsing string to Array meet empty indexes [].
Bug Report: qs.parse when parsing a string with empty indexes [] in a key.
May 13, 2018
I think there is a bug in
parseArrays: false
option:normal case with index
buggy case with empty index
Instead, I will expect if I set
parseArrays: false
, I will receive noArray
:That is because the array parsing is only preserving the order, not by their true indexes in the query, according to the doc:
Also it is consistent with when other option being set (i.e. treat
[]
as[0]
, see below.)The text was updated successfully, but these errors were encountered: