Skip to content

Commit

Permalink
Fix the cleaning of the version prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Feb 15, 2017
1 parent 1600e62 commit 95abd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Converter/SemverConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function convertVersion($version)
}

$version = str_replace('', '-', $version);
$prefix = preg_match('/^[a-z]/', $version) ? substr($version, 0, 1) : '';
$prefix = preg_match('/^[a-z]/', $version) && 0 !== strpos($version, 'dev-') ? substr($version, 0, 1) : '';
$version = substr($version, strlen($prefix));
$version = SemverUtil::convertVersionMetadata($version);
$version = SemverUtil::convertDateVersion($version);
Expand Down

0 comments on commit 95abd7a

Please sign in to comment.