* Returns whether the URL has valid protocol. * Deep link protocol is valid, but not javascript etc. * @param {string|!URL} url * @return {boolean}
(url)
| 39 | * @return {boolean} |
| 40 | */ |
| 41 | isProtocolValid(url) { |
| 42 | const parsed = this.parse(url); |
| 43 | return !INVALID_PROTOCOLS.includes(parsed.protocol); |
| 44 | }, |
| 45 | |
| 46 | /** |
| 47 | * Asserts that a given url is HTTPS or protocol relative. |
no test coverage detected