Skip to content

Commit

Permalink
doc: fix default value of opts.decodeURIComponent
Browse files Browse the repository at this point in the history
In the documentation for querystring.parse, the documentation mentions
that the default value for options.decodeURIComponent is the
decodeURIComponent function, but it's actually the querystring.unescape
function.

PR-URL: nodejs/node-v0.x-archive#9259
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
  • Loading branch information
h7lin authored and cjihrig committed Mar 3, 2015
1 parent 1009130 commit 8fb711e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/querystring.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ characters.
Options object may contain `maxKeys` property (equal to 1000 by default), it'll
be used to limit processed keys. Set it to 0 to remove key count limitation.

Options object may contain `decodeURIComponent` property (`decodeURIComponent` by default),
Options object may contain `decodeURIComponent` property (`querystring.unescape` by default),
it can be used to decode `non-utf8` encoding string if necessary.

Example:
Expand Down

0 comments on commit 8fb711e

Please sign in to comment.