(domain: string)
| 6 | * a bare host (e.g. `yoursite.atlassian.net`). |
| 7 | */ |
| 8 | export function normalizeConfluenceDomainHost(domain: string): string { |
| 9 | return domain |
| 10 | .trim() |
| 11 | .replace(/^https?:\/\//i, '') |
| 12 | .replace(/\/+$/, '') |
| 13 | } |
| 14 | |
| 15 | export async function getConfluenceCloudId( |
| 16 | domain: string, |
no test coverage detected