Skip to content

Commit

Permalink
fix version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
korelstar committed Oct 14, 2022
1 parent 044eba1 commit 75c6794
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/nextcloud-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 75c6794

Please sign in to comment.