(destination: string)
| 41 | * Checks if a destination is an external rewrite (starts with http/https) |
| 42 | */ |
| 43 | export function isExternalDestination(destination: string): boolean { |
| 44 | return destination.startsWith('http://') || destination.startsWith('https://') |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Applies a destination to a URL, updating the pathname or creating a new URL |
no test coverage detected