commit 978f5e4: [Minor] Update docs
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jan 20 13:07:12 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-01-20 12:37:07 +0000
URL: https://github.com/rspamd/rspamd/commit/978f5e47d0607832c9f832b9708452b9f9d4e2fb
[Minor] Update docs
---
src/lua/lua_text.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c
index e10c34581..ed1771feb 100644
--- a/src/lua/lua_text.c
+++ b/src/lua/lua_text.c
@@ -107,6 +107,14 @@ LUA_FUNCTION_DEF (text, take_ownership);
* @method rspamd_text:exclude_chars(set_to_exclude, [always_copy])
* Returns a text (if owned, then the original text is modified, if not, then it is copied and owned)
* where all chars from `set_to_exclude` are removed
+ * Patterns supported:
+ *
+ * - %s - all space characters
+ * - %n - all newline characters
+ * - %c - all control characters (it includes 8bit characters and spaces)
+ * - %8 - all 8 bit characters
+ * - %% - just a percent character
+ *
* @param {string} set_to_exclude characters to exclude
* @param {boolean} always_copy always copy the source text
* @return {tspamd_text} modified or copied text
More information about the Commits
mailing list