11 lines
208 B
Lua
11 lines
208 B
Lua
utils = {}
|
|
|
|
function utils.split (str, sep)
|
|
local new_table = {}
|
|
for v in string.gmatch(str, "([^"..sep.."]+)") do
|
|
table.insert(new_table, v)
|
|
end
|
|
return new_table
|
|
end
|
|
|
|
return utils |