Module:CommonFunctions: Difference between revisions

no edit summary
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) ~= '' and skip_empty) or skip_empty == nil then
         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
ElEditors, Administrators
70,766

edits