# HG changeset patch # User Matthew Wild # Date 1736438813 0 # Node ID 601ec2c19180a9a7dbe860f26bc460bc08692e1d # Parent 9cd5b3484a1dc9be251e96782c5a3a29e007c43b 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 :) diff -r 9cd5b3484a1d -r 601ec2c19180 core/modulemanager.lua --- a/core/modulemanager.lua Thu Jan 09 13:23:46 2025 +0000 +++ b/core/modulemanager.lua Thu Jan 09 16:06:53 2025 +0000 @@ -26,7 +26,7 @@ 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,