aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-08 10:06:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-08 10:06:25 +0100
commit075c2d3608e5e8be18ac4721b371a92e33f63252 (patch)
tree5b6929a73d28fe69cc8e5ad03ba864ab81a7183f /src/lua/lua_regexp.c
parent5ef40cdc6f33d58f2cff3b68cc7a83cb4adaa25c (diff)
downloadrspamd-075c2d3608e5e8be18ac4721b371a92e33f63252.tar.gz
rspamd-075c2d3608e5e8be18ac4721b371a92e33f63252.zip
Fix documentation.
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 221d8d308..48af6f7ab 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -333,12 +333,7 @@ lua_regexp_search (lua_State *L)
*
* @param {string} line match the specified line against regexp object
* @param {bool} match raw regexp instead of utf8 one
- * @return {table or nil} table of strings matched or nil
- * @example
- * local re = regexp.create_cached('/^\s*([0-9]+)\s*$/')
- * -- returns nil
- * local m1 = re:match('blah')
- * local m2 = re:match(' 190 ')
+ * @return {bool} true if `line` matches
*/
static int
lua_regexp_match (lua_State *L)
@@ -395,12 +390,7 @@ lua_regexp_match (lua_State *L)
* @param {string} line match the specified line against regexp object
* @param {number} max_matches maximum number of matches
* @param {bool} match raw regexp instead of utf8 one
- * @return {table or nil} table of strings matched or nil
- * @example
- * local re = regexp.create_cached('/^\s*([0-9]+)\s*$/')
- * -- returns nil
- * local m1 = re:match('blah')
- * local m2 = re:match(' 190 ')
+ * @return {number} number of matches found in the `line` argument
*/
static int
lua_regexp_matchn (lua_State *L)