Merge pull request #6114 from bdoss/urijs

Added duplicateQueryParameters method from docs to URI.js.
This commit is contained in:
Masahiro Wakame
2015-10-07 21:43:11 +09:00
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -37,4 +37,9 @@ var uri: uri.URI = $('a').uri();
URI('http://example.org/foo/hello.html').segment('bar');
URI('http://example.org/foo/hello.html').segment(0, 'bar');
URI('http://example.org/foo/hello.html').segment(['foo', 'bar', 'foobar.html']);
URI('http://example.org/foo/hello.html').segment(['foo', 'bar', 'foobar.html']);
var withDuplicates = URI("?bar=1&bar=1")
.duplicateQueryParameters(true)
.normalizeQuery()
.toString();
+2
View File
@@ -27,6 +27,8 @@ declare module uri {
domain(): string;
domain(domain: boolean): string;
domain(domain: string): URI;
duplicateQueryParameters(val: boolean): URI;
equals(): boolean;
equals(url: string): boolean;