aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_trie.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-24 09:20:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-24 09:20:05 +0100
commit6321d90514ddfb14aface7b2ddb954a4d4fb0414 (patch)
tree22d16199baf9f018b2288a07770a5f32265ecae0 /src/lua/lua_trie.c
parent231ab5e95dbe16bfcc9696b22536ab70d995c418 (diff)
downloadrspamd-6321d90514ddfb14aface7b2ddb954a4d4fb0414.tar.gz
rspamd-6321d90514ddfb14aface7b2ddb954a4d4fb0414.zip
[Feature] Support more hyperscan flags
Diffstat (limited to 'src/lua/lua_trie.c')
-rw-r--r--src/lua/lua_trie.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c
index 58a669832..a1b0de118 100644
--- a/src/lua/lua_trie.c
+++ b/src/lua/lua_trie.c
@@ -430,6 +430,12 @@ lua_load_trie (lua_State *L)
lua_setfield (L, -2, "utf8");
lua_pushinteger (L, RSPAMD_MULTIPATTERN_TLD);
lua_setfield (L, -2, "tld");
+ lua_pushinteger (L, RSPAMD_MULTIPATTERN_DOTALL);
+ lua_setfield (L, -2, "dot_all");
+ lua_pushinteger (L, RSPAMD_MULTIPATTERN_SINGLEMATCH);
+ lua_setfield (L, -2, "single_match");
+ lua_pushinteger (L, RSPAMD_MULTIPATTERN_NO_START);
+ lua_setfield (L, -2, "no_start");
lua_settable (L, -3);
/* Main content */