luci-base: introduce luci.dispatcher.lookup()
[oweals/luci.git] / modules / luci-base / luasrc / util.luadoc
index 805eeb7f8effb98aa4f307d25485466b08ccc9b9..79a17a2280483f4cb66349ea8e4db5f2636b2c10 100644 (file)
@@ -82,6 +82,15 @@ Strip HTML tags from given string.
 @return        String with HTML tags stripped of
 ]]
 
+---[[
+Safely quote value for use in shell commands.
+
+@class function
+@name shellquote
+@param value  String containing the value to quote
+@return Single-quote enclosed string with embedded quotes escaped
+]]
+
 ---[[
 Splits given string on a defined separator sequence and return a table
 
@@ -109,13 +118,13 @@ Remove leading and trailing whitespace from given string value.
 ]]
 
 ---[[
-Count the occurences of given substring in given string.
+Count the occurrences of given substring in given string.
 
 @class function
 @name cmatch
 @param str             String to search in
 @param pattern String containing pattern to find
-@return                        Number of found occurences
+@return                        Number of found occurrences
 ]]
 
 ---[[