mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 07:01:27 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/** Get hostname from url in lower case */
|
||||
export function getUrlHostname(url: string | URL): string {
|
||||
const hostname = typeof url === 'string' ? new URL(url).hostname : url.hostname
|
||||
return hostname.toLowerCase()
|
||||
}
|
||||
Reference in New Issue
Block a user