ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary |
No edit summary |
||
Line 82: | Line 82: | ||
-- Implement splitting string to a table. | -- Implement splitting string to a table. | ||
function split(s, delimiter) | function split(s, delimiter) | ||
if not s then return | if not s then return {} end | ||
local i = 1 | local i = 1 | ||
if delimiter == nil then | if delimiter == nil then |