(url = "")
| 33 | const sortByLocale = (left, right) => left.localeCompare(right); |
| 34 | |
| 35 | function isExternalUrl(url = "") { |
| 36 | return ( |
| 37 | url.startsWith("//") || url.includes("://") || url.startsWith("mailto:") |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | function stripQueryAndHash(url = "") { |
| 42 | const q = url.split("?")[0]; |