Skip to content
This repository was archived by the owner on Jan 3, 2019. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed leading "?"
  • Loading branch information
dartess committed Sep 13, 2016
commit 7f2dba173da215fc34298b6c4936f47185663fba
3 changes: 3 additions & 0 deletions src/url-search-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ function decode(str) {
function URLSearchParams(query) {
this[secret] = Object.create(null);
if (!query) return;
if (query.charAt(0) === '?') {
query = query.slice(1);
}
for (var
index, value,
pairs = (query || '').split('&'),
Expand Down