From 48b64ef35ba7d10551a7a11f4fa0054490505d25 Mon Sep 17 00:00:00 2001 From: Max Carrara Date: Mon, 1 Jul 2024 16:10:35 +0200 Subject: [PATCH] utils: align regex of parse_ceph_version with Perl equivalent Signed-off-by: Max Carrara Tested-by: Lukas Wagner Reviewed-by: Lukas Wagner Tested-by: Igor Thaller --- www/manager6/Utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index f5608944..74e46694 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -118,7 +118,8 @@ Ext.define('PVE.Utils', { } if (service.ceph_version) { - var match = service.ceph_version.match(/version (\d+(\.\d+)*)/); + // See PVE/Ceph/Tools.pm - get_local_version + const match = service.ceph_version.match(/^ceph.*\sv?(\d+(?:\.\d+)+)/); if (match) { return match[1]; }