Skip to content

Commit 4b2c196

Browse files
authored
Merge pull request #34 from stof/patch-1
Fix the detection of dev versions for semver branches
2 parents 350ebcd + 9fc5a1a commit 4b2c196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer-lock-diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function diff($key, $data_from, $data_to) {
6969

7070
function version($pkg)
7171
{
72-
if(substr($pkg->version,0,4) == 'dev-' && isset($pkg->source) && isset($pkg->source->reference)) {
72+
if((substr($pkg->version,0,4) == 'dev-' || '-dev' === substr($pkg->version, -4)) && isset($pkg->source) && isset($pkg->source->reference)) {
7373
$version = substr($pkg->source->reference,0,7) ?: '';
7474
} else {
7575
$version = (string) $pkg->version;

0 commit comments

Comments
 (0)