From 6321d90514ddfb14aface7b2ddb954a4d4fb0414 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Sep 2019 09:20:05 +0100 Subject: [Feature] Support more hyperscan flags --- src/lua/lua_trie.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lua/lua_trie.c') 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 */ -- cgit v1.2.3