(urlString)
| 337 | * @return {string} |
| 338 | */ |
| 339 | export function assertAbsoluteHttpOrHttpsUrl(urlString) { |
| 340 | userAssert( |
| 341 | /^https?\:/i.test(urlString), |
| 342 | 'URL must start with "http://" or "https://". Invalid value: %s', |
| 343 | urlString |
| 344 | ); |
| 345 | return parseUrlDeprecated(urlString).href; |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Returns the URL without fragment. If URL doesn't contain fragment, the same |
no test coverage detected