(url)
| 10 | * @returns {string} |
| 11 | */ |
| 12 | export default function normalizeURLForProtocolCheck(url) { |
| 13 | if (typeof url !== 'string') { |
| 14 | return url; |
| 15 | } |
| 16 | |
| 17 | let start = 0; |
| 18 | |
| 19 | while (start < url.length && url.charCodeAt(start) <= 0x20) { |
| 20 | start++; |
| 21 | } |
| 22 | |
| 23 | return url.slice(start).replace(urlParserControlCharacters, ''); |
| 24 | } |
no outgoing calls
no test coverage detected