liquid_feedback_frontend

view env/util/trim.lua @ 1249:62f7e7d4f9ec

merge
author bsw
date Tue Apr 05 20:41:05 2016 +0200 (2016-04-05)
parents de8602f8d9bb
children
line source
1 function util.trim(string)
2 if string == nil then
3 return string
4 end
5 return (string:gsub("^%s*", ""):gsub("%s*$", ""):gsub("%s+", " "))
6 end

Impressum / About Us