From 1c5f69683f550e01b04ba48748551513ce3183b2 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 25 Feb 2021 15:31:07 +0100 Subject: [PATCH] l_AppVersionInt: respect versions like r2.12.0, not just v2.12.0 refs #8628 --- lib/remote/apilistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index a386806fa..87477ab96 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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)) {