stringx.split delimiter optional

This commit is contained in:
Max Cahill 2021-07-06 08:29:13 +10:00
parent 65d06d01f6
commit 77d954e58a

View File

@ -12,6 +12,7 @@ local stringx = setmetatable({}, {
--split a string on a delimiter into an ordered table
function stringx.split(self, delim)
delim = delim or ""
assert:type(self, "string", "stringx.split - self", 1)
assert:type(delim, "string", "stringx.split - delim", 1)