1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-28 21:08:22 +02:00
Rampant/libs/StringUtils.lua
2018-01-13 23:07:29 -08:00

16 lines
347 B
Lua
Executable File

local stringUtils = {}
function stringUtils.isRampant(str)
return (string.sub(str,1,7) == "rampant")
end
function stringUtils.starts(str, start)
return (string.sub(str,1,string.len(start)) == start)
end
function stringUtils.ends(str, tail)
return (tail == '') or (string.sub(str, -string.len(tail)) == tail)
end
return stringUtils