[added] stringx.starts_with

This commit is contained in:
Max Cahill 2021-03-02 11:45:19 +11:00
parent eef0d8d126
commit dfd1a1c69f

View File

@ -280,4 +280,8 @@ function stringx.apply_template(s, sub)
return r
end
function stringx.starts_with(s, start)
return s:sub(1, #start) == start
end
return stringx