From dc648aa59849890aa6837be835323f6b8a0994fc Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Tue, 4 Jan 2022 15:27:27 +0100 Subject: [PATCH] Improve code quality --- minetest/misc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minetest/misc.lua b/minetest/misc.lua index 910b74a..583d8e2 100644 --- a/minetest/misc.lua +++ b/minetest/misc.lua @@ -256,7 +256,7 @@ function get_mod_info() local function read_depends(field) local depends = {} for depend in (mod_conf[field] or ""):gmatch"[^,]+" do - depends[depend:match"^%s*(.-)%s*$"] = true + depends[modlib.text.trim_spacing(depend)] = true end info[field] = depends end