Merge branch 'joenio-method-test-blank-strings'
This commit is contained in:
commit
f39e51c0f8
@ -194,6 +194,12 @@ function string:isempty()
|
||||
return self == nil or self == ''
|
||||
end
|
||||
|
||||
-- Retruns true if the string is blank
|
||||
function string:isblank()
|
||||
self = self:trim()
|
||||
return self:isempty()
|
||||
end
|
||||
|
||||
-- Returns true if String starts with Start
|
||||
function string.starts(String, Start)
|
||||
return Start == string.sub(String,1,string.len(Start))
|
||||
|
Reference in New Issue
Block a user