ljharb/qs

square brackets confuse the parser

開放

#513 建立於 2024年10月10日

 (5 則留言) (0 個反應) (0 位負責人)JavaScript (911 個分叉)batch import
bughelp wantedparsestringify

倉庫指標

星標
 (8,943 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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'

貢獻者指南