(url)
| 440 | } |
| 441 | |
| 442 | function getHash(url) { |
| 443 | let hash = ''; |
| 444 | const hashStart = url.indexOf('#'); |
| 445 | if (hashStart !== -1) { |
| 446 | hash = url.slice(hashStart); |
| 447 | } |
| 448 | |
| 449 | return hash; |
| 450 | } |
| 451 | |
| 452 | function getUrlWithoutQuery(url) { |
| 453 | // Avoid `split('?')` so query-heavy URLs don't allocate large arrays. |
no outgoing calls
no test coverage detected