commit 97e0489: [Minor] Fix occasional damage

Vsevolod Stakhov vsevolod at rspamd.com
Sun Dec 18 20:21:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-12-18 20:15:06 +0000
URL: https://github.com/rspamd/rspamd/commit/97e048959fff2d9db4ad3b2723e97719477a807d (HEAD -> master)

[Minor] Fix occasional damage

---
 lualib/lua_selectors/extractors.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lualib/lua_selectors/extractors.lua b/lualib/lua_selectors/extractors.lua
index 334fb4774..484adec56 100644
--- a/lualib/lua_selectors/extractors.lua
+++ b/lualib/lua_selectors/extractors.lua
@@ -302,7 +302,7 @@ e.g. `get_tld`]],
       return urls,'userdata_list'
     end,
     ['description'] = [[Get most specific urls. Arguments are equal to the Lua API function]],
-    ['args_schema'] = ts.shape{
+    ['args_schema'] = {ts.shape{
       limit = ts.number + ts.string / tonumber,
       esld_limit = (ts.number + ts.string / tonumber):is_optional(),
       exclude_flags = url_flags_ts,
@@ -313,7 +313,7 @@ e.g. `get_tld`]],
       need_emails = (ts.boolean + ts.string / lua_util.toboolean):is_optional(),
       need_images = (ts.boolean + ts.string / lua_util.toboolean):is_optional(),
       ignore_redirected = (ts.boolean + ts.string / lua_util.toboolean):is_optional(),
-    }
+    }}
   },
   ['specific_urls_filter_map'] = {
     ['get_value'] = function(task, args)


More information about the Commits mailing list