1
0
Fork 0

Fix pretty version guessing when non-dev branch

pull/6866/merge
Alessandro Lai 2017-12-04 12:50:55 +01:00 committed by Jordi Boggiano
parent 54adf0b61e
commit fc6c12bd0a
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ class VersionGuesser
private function postprocess(array $versionData)
{
// make sure that e.g. dev-1.5 gets converted to 1.5.x-dev
if ('dev-' !== substr($versionData['version'], 0, 4)) {
if ('-dev' === substr($versionData['version'], -4)) {
$versionData['pretty_version'] = preg_replace('{(\.9{7})+}', '.x', $versionData['version']);
}