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

Function normalizeInput

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

Source from the content-addressed store, hash-verified

131}
132
133function normalizeInput(input: string) {
134 return input
135 .trim()
136 .replace(/^git\+/, "")
137 .replace(/#.*$/, "")
138 .replace(/\/+$/, "")
139}
140
141function trimGitSuffix(input: string) {
142 return input.replace(/\.git$/, "")

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected