mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Enhanced lua string trim
Trim spaces from the about page form fields
This commit is contained in:
parent
893bb9b511
commit
39a6b240da
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
-- ###############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue