1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-30 21:19:46 +02:00
Rampant/libs/StringUtils.lua
2019-02-15 20:17:30 -08:00

18 lines
323 B
Lua
Executable File

if stringUtilsG then
return stringUtilsG
end
local stringUtils = {}
local sFind = string.find
function stringUtils.isRampant(str)
return sFind(str, "rampant", -#"rampant")
end
function stringUtils.isSpawnerEgg(str)
return sFind(str, "spawner", -#"spawner")
end
stringUtilsG = stringUtils
return stringUtils