MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / normalizeVersion

Function normalizeVersion

src/upgrade/index.ts:194–197  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

192
193/** `0.9.9` / `v0.9.9` → `v0.9.9` (release tags are v-prefixed). */
194export function normalizeVersion(v: string): string {
195 const t = v.trim();
196 return t.startsWith('v') ? t : `v${t}`;
197}
198
199/** Strip a leading `v`: `v0.9.9` → `0.9.9`. */
200export function stripV(v: string): string {

Callers 4

upgrade.test.tsFile · 0.90
isUpdateAvailableFunction · 0.85
resolveLatestVersionFunction · 0.85
runUpgradeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected