(value: string)
| 142 | // --------------------------------------------------------------------------- |
| 143 | |
| 144 | const slugify = (value: string): string => |
| 145 | value |
| 146 | .toLowerCase() |
| 147 | .replace(/[^a-z0-9]+/g, "_") |
| 148 | .replace(/^_+|_+$/g, ""); |
| 149 | |
| 150 | const hostnameOf = (url: string): string | null => { |
| 151 | if (!URL.canParse(url)) return null; |
no test coverage detected