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 }
113
114 const parseVersion = (v: string) => {
115 const cleaned = v.replace(/^v/, "");
116 return cleaned.split(".").map(num => parseInt(num) || 0);
117 };
118
119 const localParts = parseVersion(local);
120 const remoteParts = parseVersion(remote);

Callers 1

compareVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected