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)
for i = 1, #table do
if table[i] == self then
return true
end
end
return false
function string:contains(str)
return self:find(str, 1, true) ~= nil
end
function string:ends_with(suffix)