MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / parseStableVersion

Function parseStableVersion

packages/core/src/version.ts:11–17  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

9}
10
11function parseStableVersion(version: string): ParsedStableVersion | null {
12 const normalized = version.trim().replace(/^v/i, '')
13 const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(normalized)
14 if (!match) return null
15
16 return buildParsedVersion(match)
17}
18
19function parseComparableCurrentVersion(version: string): ParsedComparableVersion | null {
20 const normalized = version.trim().replace(/^v/i, '')

Callers 2

isStableVersionFunction · 0.85
isNewerStableVersionFunction · 0.85

Calls 2

buildParsedVersionFunction · 0.85
execMethod · 0.65

Tested by

no test coverage detected