sindresorhus/query-string

Lack of symmetry between parse and stringify

Open

#295 geöffnet am 10. Nov. 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (6.538 Stars) (459 Forks)batch import
enhancementhelp wanted

Beschreibung

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

Contributor Guide