tj / node-querystring

querystring parser for node and the browser - supporting nesting (used by Express, Connect, etc)
MIT License
455 stars 66 forks source link

Custom Delimiter Support #35

Closed mal closed 12 years ago

mal commented 12 years ago

Implements GH-1.

This will allow one additional single character delimiter to be used in conjunction with the existing syntax, allowing support for querystrings such as:

foo.bar[0].boing[he.llo].world.rawr=rawk.txt

To be parsed correctly with the . delimiter as:

{ foo: { bar: [ { boing: { 'he.llo': { world: { rawr: 'rawk.txt' } } } } ] } }

Found this behavior mentioned on mcavage/node-restify#94 which lead me to GH-1, figured I'd give it a whirl; feedback welcome.

mal commented 12 years ago

Just saw the coercion branch. Hold off on merging and I'll submit one in the style, and more compatible with that branch tonight to ease work down the line.