(url: string)
| 1 | const isProd = () => process.env.NODE_ENV === 'production'; |
| 2 | |
| 3 | export function stripProtocol(url: string): string { |
| 4 | return url.replace(/^https?:\/\//, ''); |
| 5 | } |
| 6 | |
| 7 | export function normalizeUrl(url: string): string { |
| 8 | return url.replace(/\.\.(\w+)$/, '.$1'); |
no outgoing calls
no test coverage detected