(hubAddress: string)
| 215 | } |
| 216 | |
| 217 | export function normalizeHubUrl(hubAddress: string): string { |
| 218 | const trimmed = hubAddress.trim().replace(/\/+$/, ""); |
| 219 | if (!trimmed) return ""; |
| 220 | if (/^https?:\/\//i.test(trimmed)) return trimmed; |
| 221 | return `http://${trimmed}`; |
| 222 | } |
no outgoing calls
no test coverage detected