Added more util functions

This commit is contained in:
EvilFactory
2023-03-08 17:22:49 -03:00
parent ef28f7c5fe
commit 3fe775405c
5 changed files with 53 additions and 6 deletions
@@ -0,0 +1,7 @@
string.startsWith = function(str, start)
return string.sub(str, 1, string.len(start)) == start
end
string.endsWith = function(str, ending)
return ending == "" or string.sub(str, -string.len(ending)) == ending
end