aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorEris <109345206+FerretDetective@users.noreply.github.com>2024-03-21 04:45:02 -0600
committerGitHub <noreply@github.com>2024-03-21 10:45:02 +0000
commit751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10 (patch)
tree93e2294516ec0aef923b8a66bff352b08dc07a7d /lua
parenttests: remove old spec (#1634) (diff)
downloadmason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.tar
mason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.tar.gz
mason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.tar.bz2
mason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.tar.lz
mason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.tar.xz
mason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.tar.zst
mason-751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10.zip
fix(health): support multidigit luarocks version numbers (#1648)
Diffstat (limited to 'lua')
-rw-r--r--lua/mason/health.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason/health.lua b/lua/mason/health.lua
index 1f8a225f..b8680ad4 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."