mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
CoreApi: accept versions prefixed with 'r'
This commit is contained in:
parent
2518990335
commit
eaf0a5e92d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user