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

5 lines
92 B
Lua

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