Skip to content

Commit 75c6794

Browse files
committed
fix version detection
1 parent 044eba1 commit 75c6794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/nextcloud-version.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ function getNCVersionFromComposer($path) {
2020
$v = substr($v, 2);
2121
} elseif (substr($v, 0, 10) == 'dev-stable') {
2222
$v = substr($v, 10);
23+
if (substr($v, -4) == '@dev') {
24+
$v = substr($v, 0, -4);
25+
}
2326
}
2427
return $v;
2528
}

0 commit comments

Comments
 (0)