(value: string)
| 48 | }; |
| 49 | |
| 50 | export const hostOfUrl = (value: string): string | null => |
| 51 | parseUrl(value)?.host.toLowerCase() ?? null; |
| 52 | |
| 53 | /** The registrable domain of a hostname (eTLD+1), backed by the full Public |
| 54 | * Suffix List via `tldts` (so `api.foo.co.uk` → `foo.co.uk`, `x.co.in` → |
no test coverage detected