mirror of
https://github.com/veden/Rampant.git
synced 2024-12-30 21:19:46 +02:00
18 lines
323 B
Lua
Executable File
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
|