ljharb / qs

A querystring parser with nesting support
BSD 3-Clause "New" or "Revised" License
8.5k stars 729 forks source link

[Fix] `stringify`: with `arrayFormat: comma`, include an explicit `[]` on a single-item array #441

Closed ljharb closed 2 years ago

ljharb commented 2 years ago

Fixes #434

codecov[bot] commented 2 years ago

Codecov Report

Merging #441 (4e44019) into main (113b990) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #441   +/-   ##
=======================================
  Coverage   99.85%   99.86%           
=======================================
  Files           8        8           
  Lines        1424     1440   +16     
  Branches      173      174    +1     
=======================================
+ Hits         1422     1438   +16     
  Misses          2        2           
Impacted Files Coverage Δ
lib/stringify.js 100.00% <100.00%> (ø)
test/parse.js 99.79% <100.00%> (+<0.01%) :arrow_up:
test/stringify.js 99.76% <100.00%> (+<0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 113b990...4e44019. Read the comment docs.