liquid_feedback_frontend

view env/util/trim.lua @ 1292:d7890c4abe4d

Fixed name of PostgreSQL license
author bsw
date Mon Apr 18 10:53:08 2016 +0200 (2016-04-18)
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