fusionpbx/includes/install/scripts/resources/functions/trim.lua

7 lines
113 B
Lua

--add the trim function
function trim(s)
if (s) then
return s:gsub("^%s+", ""):gsub("%s+$", "")
end
end