ElEditors, Administrators
70,766
edits
No edit summary |
No edit summary |
||
Line 102: | Line 102: | ||
result = {}; | result = {}; | ||
for match in (s .. delimiter):gmatch("(.-)" .. delimiter) do | for match in (s .. delimiter):gmatch("(.-)" .. delimiter) do | ||
if (trim(match) ~= '' | if (skip_empty == true and trim(match) ~= '') or skip_empty == nil then | ||
table.insert(result, i, trim(match)); | table.insert(result, i, trim(match)); | ||
i = i + 1 | i = i + 1 |