(url: string)
| 13 | |
| 14 | // TODO: Should handle this on validation/save when creating an account |
| 15 | export const addHttpsToUrl = (url: string) => { |
| 16 | if (!url.startsWith('http://') && !url.startsWith('https://')) { |
| 17 | return appendProtocol(url); |
| 18 | } |
| 19 | return url; |
| 20 | }; |
| 21 | |
| 22 | /** this function will parse an object into query string params */ |
| 23 | export const qs = (params: any) => { |
no test coverage detected