fix string_starts

This commit is contained in:
Senghan Bright 2021-01-19 05:38:49 +01:00
parent 304a6bf887
commit e52c61c312

View File

@ -25,7 +25,7 @@ util.string_isempty = function(str)
end
util.string_starts = function(str, token)
return str:sub(1, str:len(token)) == token
return str:sub(1, token:len()) == token
end
util.string_ends = function(str, token)