ljharb/qs

square brackets confuse the parser

Open

#513 ouverte le 10 oct. 2024

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)JavaScript (8 015 stars) (744 forks)batch import
bughelp wantedparsestringify

Description

Hello, while parsing a body like the following, qs fails:

buttons[commands.identifier_orders_merge_action|{"orders":["47441","47440"]}]=Unisci+ordini

This becomes something like:

'buttons[commands.identifier_orders_merge_action|{"orders":': { '"47441","47440"': 'Unisci ordini' }

while it should be something more similar to this:

'buttons[commands.identifier_orders_merge_action|{"orders":{ '"47441","47440"}]': 'Unisci ordini'

Guide contributeur