diff --git a/tests/nextcloud-version.php b/tests/nextcloud-version.php index 36938000f..507a539c9 100644 --- a/tests/nextcloud-version.php +++ b/tests/nextcloud-version.php @@ -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; }