CoreApi: accept versions prefixed with 'r'

This commit is contained in:
Thomas Gelf 2019-09-01 14:06:11 +02:00
parent 2518990335
commit eaf0a5e92d

View File

@ -77,7 +77,7 @@ class CoreApi implements DeploymentApiInterface
return null;
}
if (preg_match('/^v?(\d\.\d+\.\d+)/', $version, $match)) {
if (preg_match('/^[rv]?(\d\.\d+\.\d+)/', $version, $match)) {
return $match[1];
} else {
return null;