aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-01-09 16:06:53 +0000
committerMatthew Wild <mwild1@gmail.com>2025-01-09 16:06:53 +0000
commitf6ed03a903a23b9f11c00ff865b8fb82f50b8303 (patch)
treecc975b49ca09122e1caa28da81bb402757106dec
parentd0457564a32beb493af5d95a51e464aeb7302b15 (diff)
downloadprosody-f6ed03a903a23b9f11c00ff865b8fb82f50b8303.tar.gz
prosody-f6ed03a903a23b9f11c00ff865b8fb82f50b8303.zip
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 :)
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
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,