Added more util functions
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user