Skip to content

Failed to parse key with square brackets mixed with dots #95

@nevill

Description

@nevill

The expected result of qs.parse('a=1.2&b[0].c=3') should be

 { a: '1.2', 'b[0].c': '3' }

In fact we get

{ a: '1.2', b: { '0].': '3' } }

Just for a note, stringify works well

> qs.stringify({ a: '1.2', 'b[0].c': '3' })
'a=1.2&b%5B0%5D.c=3'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions