Skip to content
This repository was archived by the owner on Jan 3, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
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
build
  • Loading branch information
MrJeffry committed Sep 14, 2016
commit 774ee42c54667329d913a70f4ba67e8455b0b15f
2 changes: 1 addition & 1 deletion build/url-search-params.amd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/url-search-params.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions build/url-search-params.max.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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 All @@ -47,6 +50,11 @@ function URLSearchParams(query) {
decode(value.slice(0, index)),
decode(value.slice(index + 1))
);
} else if (value.length){
this.append(
decode(value),
''
);
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions build/url-search-params.max.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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 All @@ -47,6 +50,11 @@ function URLSearchParams(query) {
decode(value.slice(0, index)),
decode(value.slice(index + 1))
);
} else if (value.length){
this.append(
decode(value),
''
);
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions build/url-search-params.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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 All @@ -46,6 +49,11 @@ function URLSearchParams(query) {
decode(value.slice(0, index)),
decode(value.slice(index + 1))
);
} else if (value.length){
this.append(
decode(value),
''
);
}
}
}
Expand Down