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

Function hasHttpProtocol

apps/sim/lib/core/utils/urls.ts:7–9  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

5export const SITE_URL = 'https://www.sim.ai'
6
7function hasHttpProtocol(url: string): boolean {
8 return /^https?:\/\//i.test(url)
9}
10
11function normalizeBaseUrl(url: string): string {
12 if (hasHttpProtocol(url)) {

Callers 2

normalizeBaseUrlFunction · 0.85
getInternalApiBaseUrlFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected