Skip to content

Stringify with arrayFormat: comma, wrongfully encode comma in return #337

@Om4ar

Description

@Om4ar

wrong result with stringifying

qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'comma' })
return a=b%2Cc

when it should return a=b,c

because parsing , as reserved character per RFC 3986 should split the array if we used a parser withcomma: true option
and %2C (percent encoded comma) should be treated normally as text character

related to : #336 pr

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions