Skip to content

Commit

Permalink
fix(health): support multidigit luarocks version numbers (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
FerretDetective authored Mar 21, 2024
1 parent 3b5068f commit 751b1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mason/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 751b1fc

Please sign in to comment.