(subject: string)
| 123 | |
| 124 | /** Returns true if a URL is valid. */ |
| 125 | export function isValidURL(subject: string): boolean { |
| 126 | try { |
| 127 | tryValidURL(subject); |
| 128 | return true; |
| 129 | } catch (e) { |
| 130 | return false; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Removes query params from the URL if it can build a URL. Will return the |
no test coverage detected