We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Learn more about funding links in repositories.
Report abuse
1 parent 7f09a53 commit 6427722Copy full SHA for 6427722
test/parse.js
@@ -75,6 +75,11 @@ test('handle `+` correctly', t => {
75
t.deepEqual(queryString.parse('foo+faz=bar+baz++'), {'foo faz': 'bar baz '});
76
});
77
78
+test('parses numbers with exponential notation as string', t => {
79
+ t.deepEqual(queryString.parse('192e11=bar'), {'192e11': 'bar'});
80
+ t.deepEqual(queryString.parse('bar=192e11'), {bar: '192e11'});
81
+});
82
+
83
test('handle `+` correctly when not decoding', t => {
84
t.deepEqual(queryString.parse('foo+faz=bar+baz++', {decode: false}), {'foo+faz': 'bar+baz++'});
85
0 commit comments