(link: string)
| 63 | url.replace(/(^\w+:|^)\/\//, ''); |
| 64 | |
| 65 | export const stripLinkParameters = (link: string): string => { |
| 66 | const { origin, pathname } = new URL(link); |
| 67 | |
| 68 | return origin + pathname; |
| 69 | }; |
| 70 | |
| 71 | export const getDomainFromUrl = (link: string): string => { |
| 72 | try { |
no outgoing calls
no test coverage detected