local string_util = {}
function string_util.trim(str)
return str:gsub("%s+", "")
end
function string_util.escape(str)
return str:gsub("[%(%)%.%%%+%-%*%?%[%^%$%]]", "%%%1")
function string_util.ends_with(str, suffix)
return str:sub(-#suffix) == suffix
function string_util.is_str_empty(target)
return target == nil or target == ""
return string_util