Diff

core/modulemanager.lua @ 13614:601ec2c19180

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 :)
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Jan 2025 16:06:53 +0000
parent 13361:e20949a10118
child 13615:b03b5716e4cf
line wrap: on
line diff
--- 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,