sindresorhus/query-string

Lack of symmetry between parse and stringify

Open

#295 ouverte le 10 nov. 2020

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (6 538 stars) (459 forks)batch import
enhancementhelp wanted

Description

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

Guide contributeur