(url)
| 297 | } |
| 298 | |
| 299 | function getHash(url) { |
| 300 | let hash = ''; |
| 301 | const hashStart = url.indexOf('#'); |
| 302 | if (hashStart !== -1) { |
| 303 | hash = url.slice(hashStart); |
| 304 | } |
| 305 | |
| 306 | return hash; |
| 307 | } |
| 308 | |
| 309 | function getUrlWithoutQuery(url) { |
| 310 | // Avoid `split('?')` so query-heavy URLs don't allocate large arrays. |
no outgoing calls
no test coverage detected
searching dependent graphs…