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

Function hostLike

packages/opencode/src/util/repository.ts:91–93  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

89}
90
91function hostLike(input: string) {
92 return input.includes(".") || input.includes(":") || input === "localhost"
93}
94
95function withSlash(input: string) {
96 return input.endsWith("/") ? input : `${input}/`

Callers 1

parseRepositoryReferenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected