forcedotcom / SalesforceMobileSDK-Shared

BSD 3-Clause "New" or "Revised" License
68 stars 92 forks source link

parseUrl can now handle full url or relative ones #523

Closed wmathurin closed 4 years ago

wmathurin commented 4 years ago

parseUrl("https://asdasd:123/abc/de?a=b&c=d") => {hash: "", host: "asdasd:123", hostname: "asdasd", params: {a: "b", c: "d"}, path: "/abc/de", port: "123", protocol: "https:"}

parseUrl("/abc/de?a=b&c=d") => {hash: "", host: "", hostname: "", params: {a: "b", c: "d"}, path: "/abc/de", port: "", protocol: ""}

wmathurin commented 4 years ago

Addressing https://github.com/forcedotcom/SalesforceMobileSDK-Shared/issues/518