MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / parseVersion

Function parseVersion

sub/sub.ts:114–117  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

112 return { hasUpdate: false, localVersion: local, remoteVersion: remote };
113 }
114
115 const parseVersion = (v: string) => {
116 const cleaned = v.replace(/^v/, "");
117 return cleaned.split(".").map(num => parseInt(num) || 0);
118 };
119
120 const localParts = parseVersion(local);

Callers 1

compareVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected