MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeGeolocation

Function normalizeGeolocation

apps/sim/app/api/tools/sap_concur/shared.ts:188–193  ·  view source on GitHub ↗
(raw: string | undefined, fallback: string)

Source from the content-addressed store, hash-verified

186}
187
188function 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.

Callers 1

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected