sindresorhus/query-string

Lack of symmetry between parse and stringify

オープン

#295 opened on 2020/11/10

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (459 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (6,538 個のスター)
PR merge metrics
 (30d に merged 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}.

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