diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-06 14:28:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-06 14:28:51 +0000 |
commit | 79cc82161a4707176230fb66797f6887d67df76c (patch) | |
tree | e942a768ae59eb7e823e00ab45123e990bdf2a91 /lualib | |
parent | 2537b34b8a3c2e784d9ea7b999fb14464f91e357 (diff) | |
download | rspamd-79cc82161a4707176230fb66797f6887d67df76c.tar.gz rspamd-79cc82161a4707176230fb66797f6887d67df76c.zip |
[Minor] Fix tableshape usage, add cleanup rules method
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_fuzzy.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lualib/lua_fuzzy.lua b/lualib/lua_fuzzy.lua index e18f466a8..ee5a84e62 100644 --- a/lualib/lua_fuzzy.lua +++ b/lualib/lua_fuzzy.lua @@ -55,10 +55,10 @@ local policy_schema = ts.shape{ min_length = ts.number + ts.string / tonumber, text_multiplier = ts.number, mime_types = ts.array_of(ts.string), - scan_archives = ts.bool, - short_text_direct_hash = ts.bool, - text_shingles = ts.bool, - skip_imagess = ts.bool, + scan_archives = ts.boolean, + short_text_direct_hash = ts.boolean, + text_shingles = ts.boolean, + skip_imagess = ts.boolean, } @@ -264,4 +264,8 @@ exports.check_mime_part = function(task, part, rule_id) return false,false end +exports.cleanup_rules = function() + rules = {} +end + return exports
\ No newline at end of file |