Lines Matching refs:parse
46 JSON.parse('{"__defineGetter__":"asdf"}')],
184 assert.strictEqual(qs.parse('id=918854443121279438895193').id,
213 check(qs.parse(testCase[0]), testCase[2], testCase[0]);
218 check(qs.parse(testCase[0], ';', ':'), testCase[2], testCase[0]);
223 check(qs.parse(testCase[1]), testCase[2], testCase[1]);
232 const f = qs.parse('a=b&q=x%3Dy%26y%3Dz');
238 f.q = qs.parse(f.q);
248 const f = qs.parse('a:b;q:x%3Ay%3By%3Az', ';', ':');
253 f.q = qs.parse(f.q, ';', ':');
325 qs.parse(undefined); // Should not throw.
346 check(qs.parse(), {});
349 check(qs.parse('a', []), { a: '' });
352 check(qs.parse('a', null, []), { '': 'a' });
356 Object.keys(qs.parse('a=1&b=1&c=1', null, null, { maxKeys: 1 })).length,
361 Object.keys(qs.parse('&a', null, null, { maxKeys: 1 })).length,
374 Object.keys(qs.parse(url, null, null, { maxKeys: 0 })).length,
416 check(qs.parse('%\u0100=%\u0101'), { '%Ā': '%ā' });
425 qs.parse('a=a&b=b&c=c', null, null, { decodeURIComponent: demoDecode }),
428 qs.parse('a=a&b=b&c=c', null, '==', { decodeURIComponent: (str) => str }),
438 check(qs.parse('a=a', null, null, { decodeURIComponent: errDecode }),
475 qs.parse('foo=bor'),
480 check(qs.parse('foo&bar', '&', '&'), { foo: '', bar: '' });