From e46a46087ac51598c9f47e41416bb537945cc213 Mon Sep 17 00:00:00 2001 From: Eris <109345206+FerretDetective@users.noreply.github.com> Date: Wed, 6 Mar 2024 20:19:57 -0700 Subject: [PATCH] fix(health): support multidigit luarocks version numbers (#1646) --- lua/mason/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/mason/health.lua b/lua/mason/health.lua index 1f8a225f1..b8680ad4a 100644 --- a/lua/mason/health.lua +++ b/lua/mason/health.lua @@ -210,7 +210,7 @@ local function check_languages() name = "luarocks", relaxed = true, version_check = function(version) - local _, _, major = version:find "(%d+)%.(%d)%.(%d)" + local _, _, major = version:find "(%d+)%.(%d+)%.(%d+)" if not (tonumber(major) >= 3) then -- Because of usage of "--dev" flag return "Luarocks version must be >= 3.0.0."