From 67a9b24adc7336370776644cc82f8393601229b1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Sep 2020 09:10:01 +0100 Subject: [PATCH] [Minor] Fix `get_tld` selector --- lualib/lua_selectors/transforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] = {} -- 2.39.5