ljharb/qs

square brackets confuse the parser

Open

#513 opened on 2024年10月10日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)JavaScript (744 forks)batch import
bughelp wantedparsestringify

Repository metrics

Stars
 (8,015 stars)
PR merge metrics
 (平均マージ 6d 22h) (30d で 2 merged PRs)

説明

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'

コントリビューターガイド