(url: string)
| 754 | } |
| 755 | |
| 756 | const hostSlug = (url: string): string => { |
| 757 | // Parse defensively — a malformed URL falls back to a generic stem. |
| 758 | const match = /^[a-z]+:\/\/([^/:]+)/i.exec(url); |
| 759 | const host = match?.[1] ?? "client"; |
| 760 | const label = host.split(".").length > 1 ? host.split(".").slice(-2, -1)[0] : host; |
| 761 | return slugifyVariable(label ?? "client") || "client"; |
| 762 | }; |
| 763 | |
| 764 | export const dedupeOAuthClients = ( |
| 765 | inputs: readonly PlannedOAuthClientInput[], |
no test coverage detected