We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse
decodeDotInKeys
1 parent fd3cd7a commit 7e18298Copy full SHA for 7e18298
lib/parse.js
@@ -14,7 +14,7 @@ var defaults = {
14
charset: 'utf-8',
15
charsetSentinel: false,
16
comma: false,
17
- decodeDotInKeys: true,
+ decodeDotInKeys: false,
18
decoder: utils.decode,
19
delimiter: '&',
20
depth: 5,
test/parse.js
@@ -108,6 +108,11 @@ test('parse()', function (t) {
108
{ 'name.obj.subobject': { 'first.godly.name': 'John', last: 'Doe' } },
109
'with allowDots true and decodeDotInKeys true'
110
);
111
+ st.deepEqual(
112
+ qs.parse('name%252Eobj.first=John&name%252Eobj.last=Doe'),
113
+ { 'name%2Eobj.first': 'John', 'name%2Eobj.last': 'Doe' },
114
+ 'with allowDots and decodeDotInKeys undefined'
115
+ );
116
117
st.end();
118
});
0 commit comments