sindresorhus/query-string

Lack of symmetry between parse and stringify

Open

#295 建立於 2020年11月10日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (6,538 star) (459 fork)batch import
enhancementhelp wanted

描述

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}.

貢獻者指南