mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-08 16:26:42 -04:00
l_AppVersionInt: respect versions like r2.12.0, not just v2.12.0
refs #8628
This commit is contained in:
parent
aa4f53009e
commit
1c5f69683f
1 changed files with 1 additions and 1 deletions
|
|
@ -530,7 +530,7 @@ void ApiListener::NewClientHandler(
|
|||
|
||||
static const auto l_AppVersionInt (([]() -> unsigned long {
|
||||
auto appVersion (Application::GetAppVersion());
|
||||
boost::regex rgx (R"EOF(^v?(\d+)\.(\d+)\.(\d+))EOF");
|
||||
boost::regex rgx (R"EOF(^[rv]?(\d+)\.(\d+)\.(\d+))EOF");
|
||||
boost::smatch match;
|
||||
|
||||
if (!boost::regex_search(appVersion.GetData(), match, rgx)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue