1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-18 02:58:32 +02:00
Rampant/libs/StringUtils.lua

16 lines
347 B
Lua
Raw Normal View History

2018-01-13 23:07:29 -08:00
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