* Formats a provider name into a display-friendly label * e.g., "microsoft_teams" -> "Microsoft Teams"
(provider: string)
| 72 | * e.g., "microsoft_teams" -> "Microsoft Teams" |
| 73 | */ |
| 74 | function formatProviderName(provider: string): string { |
| 75 | return provider |
| 76 | .split(/[-_]/) |
| 77 | .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) |
| 78 | .join(' ') |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Internal: Initialize metadata map for O(1) lookups |
no test coverage detected