diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-17 09:10:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-17 09:10:01 +0100 |
commit | 67a9b24adc7336370776644cc82f8393601229b1 (patch) | |
tree | 1ab1e8b46ed819f3afc148a064bf138bd9c11015 /lualib | |
parent | 4f72ad9744deb0141b3ad31722031a98aa5c4a58 (diff) | |
download | rspamd-67a9b24adc7336370776644cc82f8393601229b1.tar.gz rspamd-67a9b24adc7336370776644cc82f8393601229b1.zip |
[Minor] Fix `get_tld` selector
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_selectors/transforms.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors/transforms.lua b/lualib/lua_selectors/transforms.lua index e5987a216..6251180ec 100644 --- a/lualib/lua_selectors/transforms.lua +++ b/lualib/lua_selectors/transforms.lua @@ -436,7 +436,7 @@ Empty string comes the first argument or 'true', non-empty string comes nil]], }, ['map_type'] = 'string', ['process'] = function(inp, _, _) - return rspamd_util.get_tld(inp) + return rspamd_util.get_tld(inp),'string' end, ['description'] = 'Extracts tld from a hostname represented as a string', ['args_schema'] = {} |