diff options
author | Steven Barth <steven@midlink.org> | 2008-11-20 19:39:40 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-11-20 19:39:40 +0000 |
commit | a3cf596d37e4116a7068daaa724270a0898cb7da (patch) | |
tree | c064825fc434a23903d29479bf26940224dc878b /libs/core/luasrc | |
parent | 9c260769a50956e9ece40a10e226da8e7191158c (diff) |
More luci.cutil
Diffstat (limited to 'libs/core/luasrc')
-rw-r--r-- | libs/core/luasrc/util.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index e49381125..53e46a99d 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -271,9 +271,12 @@ end --- Remove leading and trailing whitespace from given string value. -- @param str String value containing whitespace padded data -- @return String value with leading and trailing space removed +--[[ function trim(str) return (str:gsub("^%s*(.-)%s*$", "%1")) end +]]-- +trim = cutil.trim --- Count the occurences of given substring in given string. -- @param str String to search in |