1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-03 22:52:20 +02:00
Rampant/libs/StringUtils.lua

18 lines
323 B
Lua
Raw Normal View History

2019-02-16 06:17:30 +02:00
if stringUtilsG then
return stringUtilsG
end
2018-01-14 09:07:29 +02:00
local stringUtils = {}
2019-02-13 07:50:25 +02:00
local sFind = string.find
2018-01-14 09:07:29 +02:00
2019-02-13 07:50:25 +02:00
function stringUtils.isRampant(str)
return sFind(str, "rampant", -#"rampant")
2018-01-14 09:07:29 +02:00
end
2019-02-13 07:50:25 +02:00
function stringUtils.isSpawnerEgg(str)
return sFind(str, "spawner", -#"spawner")
2018-01-14 09:07:29 +02:00
end
2019-02-16 06:17:30 +02:00
stringUtilsG = stringUtils
2018-01-14 09:07:29 +02:00
return stringUtils