8,756
edits
(Created page with "function p.gsplit( text, pattern, plain ) if not pattern then pattern = '%s*,%s*' end local s, l = 1, text:len() return function () if s then local e, n = text:find( p...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
local p = {} | |||
function p.gsplit( text, pattern, plain ) | function p.gsplit( text, pattern, plain ) | ||
if not pattern then pattern = '%s*,%s*' end | if not pattern then pattern = '%s*,%s*' end | ||
Line 52: | Line 53: | ||
return result | return result | ||
end | end | ||
return p |