fix contains

This commit is contained in:
Scott Graves 2022-08-02 09:40:51 -05:00
parent f9e6de6c11
commit 31b0606b68

View File

@ -1,10 +1,5 @@
function string:contains(table) function string:contains(str)
for i = 1, #table do return self:find(str, 1, true) ~= nil
if table[i] == self then
return true
end
end
return false
end end
function string:ends_with(suffix) function string:ends_with(suffix)