13 lines
204 B
Plaintext
13 lines
204 B
Plaintext
StringUtility = {}
|
|
|
|
function StringUtility.Split(str, character)
|
|
local retValue = {}
|
|
string.gsub(
|
|
str,
|
|
'[^'..character..']+',
|
|
function(x)
|
|
table.insert(retValue, x)
|
|
end
|
|
)
|
|
return retValue
|
|
end |