sindresorhus/query-string

Lack of symmetry between parse and stringify

開放

#295 建立於 2020年11月10日

 (3 則留言) (0 個反應) (0 位負責人)JavaScript (459 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (6,538 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

stringify(parse('?%20&')) yields only &.

Bit of an edge-case I admit, but do we want to be losing this information?

parse('?%20&') yields {"":null," ":null}.

貢獻者指南