ljharb / qs

A querystring parser with nesting support
BSD 3-Clause "New" or "Revised" License
8.5k stars 729 forks source link

arrayLimit not working on 2 dimensional arrays #450

Open geobotsar81 opened 2 years ago

geobotsar81 commented 2 years ago

Trying to apply arrayLimit in order to bypass the default 20 items limit.

This seems to be working in case of a one-dimensional array as below:

const rawQueryString = decodeURI(window.location.search.substring(1)); console.log(rawQueryString) const queryObject = qs.parse(rawQueryString, { arrayLimit: 100 }); console.log(queryObject)

url_parse_working_2

But it does not work if this is a 2-dimensional array:

url_parse_not_working