fix version detection

This commit is contained in:
korelstar 2022-10-14 10:57:33 +02:00
parent 044eba1620
commit 75c6794aa8
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ function getNCVersionFromComposer($path) {
$v = substr($v, 2);
} elseif (substr($v, 0, 10) == 'dev-stable') {
$v = substr($v, 10);
if (substr($v, -4) == '@dev') {
$v = substr($v, 0, -4);
}
}
return $v;
}