Software /
code /
prosody
Changeset
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 |
parents | 13613:9cd5b3484a1d |
children | 13615:b03b5716e4cf |
files | core/modulemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,