MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hasHttpScheme

Function hasHttpScheme

packages/react/src/api/server-profiles.tsx:55–55  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

53};
54
55const hasHttpScheme = (value: string): boolean => /^https?:\/\//.test(value.trim());
56
57const canParseOrigin = (origin: string | undefined): boolean => {
58 if (origin === undefined) return true;

Callers 2

canParseOriginFunction · 0.85
canParseApiBaseUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected