Enhanced lua string trim

Trim spaces from the about page form fields
This commit is contained in:
Luca Deri 2016-11-10 11:27:16 +01:00
parent 893bb9b511
commit 39a6b240da
2 changed files with 2 additions and 2 deletions

View file

@ -2016,7 +2016,7 @@ end
function trimSpace(what)
if(what == nil) then return("") end
return(string.gsub(what, "%s+", ""))
return(string.gsub(string.gsub(what, "%s+", ""), "+%s", ""))
end
-- ###############################################