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

贡献者指南