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

Function isPrerelease

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

Source from the content-addressed store, hash-verified

12 const na = normalize(a);
13 const nb = normalize(b);
14 const isPrerelease = (v) => v.split('.').some((p) => !/^\d+$/.test(p));
15 if (isPrerelease(na) || isPrerelease(nb)) {
16 return na === nb ? 0 : 1;
17 }

Callers 1

compareVersionsFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected