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

Function buildParsedVersion

packages/core/src/version.ts:30–36  ·  view source on GitHub ↗
(match: RegExpExecArray)

Source from the content-addressed store, hash-verified

28}
29
30function buildParsedVersion(match: RegExpExecArray): ParsedStableVersion {
31 return {
32 major: Number(match[1]),
33 minor: Number(match[2]),
34 patch: Number(match[3]),
35 }
36}
37
38export function isStableVersion(version: string): boolean {
39 return parseStableVersion(version) !== null

Callers 2

parseStableVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected