MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / normalize

Function normalize

frontend/src/components/pluginUtils.js:11–11  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

9export function compareVersions(a, b) {
10 if (!a || !b) return 0;
11 const normalize = (v) => v.replace(/^v/, '');
12 const na = normalize(a);
13 const nb = normalize(b);
14 const isPrerelease = (v) => v.split('.').some((p) => !/^\d+$/.test(p));

Callers 1

compareVersionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected