only versions x.y.z can be checked against new version, not x.y.zbetaN

This commit is contained in:
plegall
2017-03-29 18:54:08 +02:00
parent 37c7902879
commit 3371ef1734
+1 -1
View File
@@ -85,7 +85,7 @@ class updates
'is_dev' => true,
);
if (preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION))
if (preg_match('/^(\d+\.\d+)\.(\d+)$/', PHPWG_VERSION))
{
$new_versions['is_dev'] = false;
$actual_branch = get_branch_from_version(PHPWG_VERSION);