diff options
Diffstat (limited to 'libs/core/luasrc/util.lua')
-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 |