MCPcopy Create free account
hub / github.com/continuedev/continue / parseVersion

Function parseVersion

extensions/cli/src/version.ts:86–92  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

84
85 // Simple semantic version comparison
86 const parseVersion = (version: string) => {
87 const parts = version
88 .replace(/^v/, "")
89 .split(".")
90 .map((part) => parseInt(part, 10));
91 return { major: parts[0] || 0, minor: parts[1] || 0, patch: parts[2] || 0 };
92 };
93
94 const currentParts = parseVersion(current);
95 const latestParts = parseVersion(latest);

Callers 1

compareVersionsFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected