mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-27 23:00:29 +02:00
Update mesecons_detector/init.lua
This commit is contained in:
parent
0a07ef60bd
commit
872cbfac83
|
@ -7,7 +7,7 @@ local GET_COMMAND = "GET"
|
||||||
|
|
||||||
local function comma_list_to_table(comma_list)
|
local function comma_list_to_table(comma_list)
|
||||||
local tbl = {}
|
local tbl = {}
|
||||||
for _, str in pairs(string.split(comma_list:gsub(" ", ""), ",")) do
|
for _, str in ipairs(string.split(comma_list:gsub("%s", ""), ",")) do
|
||||||
tbl[str] = true
|
tbl[str] = true
|
||||||
end
|
end
|
||||||
return tbl
|
return tbl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user