Skip to content

Commit 751b1fc

Browse files
fix(health): support multidigit luarocks version numbers (#1648)
1 parent 3b5068f commit 751b1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/mason/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ local function check_languages()
210210
name = "luarocks",
211211
relaxed = true,
212212
version_check = function(version)
213-
local _, _, major = version:find "(%d+)%.(%d)%.(%d)"
213+
local _, _, major = version:find "(%d+)%.(%d+)%.(%d+)"
214214
if not (tonumber(major) >= 3) then
215215
-- Because of usage of "--dev" flag
216216
return "Luarocks version must be >= 3.0.0."

0 commit comments

Comments
 (0)