sindresorhus/query-string

Lack of symmetry between parse and stringify

Ouverte

#295 ouverte le 10 nov. 2020

 (3 commentaires) (0 réaction) (0 personne assignée)JavaScript (459 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (6 538 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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