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

Function parts

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

Source from the content-addressed store, hash-verified

143}
144
145function parts(input: string) {
146 return input
147 .split("/")
148 .map((item) => trimGitSuffix(item.trim()))
149 .filter(Boolean)
150}
151
152function safeHost(input: string) {
153 return Boolean(input) && !input.startsWith("-") && !/[\s/\\]/.test(input)

Callers 1

parseFunction · 0.70

Calls 1

trimGitSuffixFunction · 0.70

Tested by

no test coverage detected