aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-25 13:02:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-25 13:02:40 +0000
commit58ed3fae4fe7c3c972e801698a0e8f1c615213ce (patch)
treede35216855f4c12f7bf728aeb6f59320a761aa83 /lualib
parentb87995255fa2ef0de97d509b8cd27860f014e90f (diff)
downloadrspamd-58ed3fae4fe7c3c972e801698a0e8f1c615213ce.tar.gz
rspamd-58ed3fae4fe7c3c972e801698a0e8f1c615213ce.zip
[Fix] Fix allowed_settings for neural
Issue: #3270
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_settings.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualib/lua_settings.lua b/lualib/lua_settings.lua
index 61cc9d2ad..bb0ea0457 100644
--- a/lualib/lua_settings.lua
+++ b/lualib/lua_settings.lua
@@ -170,6 +170,8 @@ local function numeric_settings_id(str)
return ret
end
+exports.numeric_settings_id = numeric_settings_id
+
-- Used to do the following:
-- If there is a group of symbols_allowed, it checks if that is an array
-- If that is a hash table then we transform it to a normal list, probably adding symbols to adjust scores