mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 09:13:53 +01:00
Improve code quality
This commit is contained in:
parent
d7cd844e9b
commit
dc648aa598
@ -256,7 +256,7 @@ function get_mod_info()
|
|||||||
local function read_depends(field)
|
local function read_depends(field)
|
||||||
local depends = {}
|
local depends = {}
|
||||||
for depend in (mod_conf[field] or ""):gmatch"[^,]+" do
|
for depend in (mod_conf[field] or ""):gmatch"[^,]+" do
|
||||||
depends[depend:match"^%s*(.-)%s*$"] = true
|
depends[modlib.text.trim_spacing(depend)] = true
|
||||||
end
|
end
|
||||||
info[field] = depends
|
info[field] = depends
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user