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

Function hostLike

packages/core/src/repository.ts:160–162  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

158}
159
160function hostLike(input: string) {
161 return input.includes(".") || input.includes(":") || input === "localhost"
162}
163
164function withSlash(input: string) {
165 return input.endsWith("/") ? input : `${input}/`

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected