MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / stripGitSuffix

Function stripGitSuffix

packages/telemetry/src/remote.ts:36–42  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

34}
35
36function stripGitSuffix(value: string): string {
37 let normalized = value.trim().replace(/^\/+/, '').replace(/\/+$/, '');
38 if (normalized.endsWith('.git')) {
39 normalized = normalized.slice(0, -4);
40 }
41 return normalized;
42}

Callers 2

normalizeRemoteFunction · 0.85
joinRemotePartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected