mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +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 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
|
||||
|
Loading…
Reference in New Issue
Block a user