MCPcopy Create free account
hub / github.com/anomalyco/opencode / looksComplete

Function looksComplete

packages/app/src/components/dialog-select-server.tsx:83–90  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

81 const checkServerHealth = useCheckServerHealth()
82
83 const looksComplete = (value: string) => {
84 const normalized = normalizeServerUrl(value)
85 if (!normalized) return false
86 const host = normalized.replace(/^https?:\/\//, "").split("/")[0]
87 if (!host) return false
88 if (host.includes("localhost") || host.startsWith("127.0.0.1")) return true
89 return host.includes(".") || host.includes(":")
90 }
91
92 const previewStatus = async (
93 value: string,

Callers 1

previewStatusFunction · 0.85

Calls 1

normalizeServerUrlFunction · 0.90

Tested by

no test coverage detected