From f6ed03a903a23b9f11c00ff865b8fb82f50b8303 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 9 Jan 2025 16:06:53 +0000 Subject: modulemanager: Handle multiple digits in Lua version number Lua has a slow release cycle, but it would be nice if Prosody doesn't break unnecessarily with 5.10 :) --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 873e08e5..4dfe3805 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -26,7 +26,7 @@ local xpcall = require "prosody.util.xpcall".xpcall; local debug_traceback = debug.traceback; local setmetatable, rawget = setmetatable, rawget; local ipairs, pairs, type, t_insert = ipairs, pairs, type, table.insert; -local lua_version = _VERSION:match("5%.%d$"); +local lua_version = _VERSION:match("5%.%d+$"); local autoload_modules = { prosody.platform, -- cgit v1.2.3