(raw: string | undefined, fallback: string)
| 186 | } |
| 187 | |
| 188 | function normalizeGeolocation(raw: string | undefined, fallback: string): string { |
| 189 | if (!raw) return `https://${fallback}` |
| 190 | const trimmed = raw.replace(/\/+$/, '') |
| 191 | if (trimmed.startsWith('http://') || trimmed.startsWith('https://')) return trimmed |
| 192 | return `https://${trimmed}` |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Acquire a Concur access token, sharing a cache with the proxy route. |
no test coverage detected