Anonymous

Module:CommonFunctions: Difference between revisions

From Elwiki
no edit summary
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 nil end
     local i = 1
     local i = 1
     if delimiter == nil then
     if delimiter == nil then