mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
[added] stringx.starts_with
This commit is contained in:
parent
eef0d8d126
commit
dfd1a1c69f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user