]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix arguments schema
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 18 Dec 2022 19:29:06 +0000 (19:29 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 18 Dec 2022 19:29:06 +0000 (19:29 +0000)
lualib/lua_selectors/extractors.lua

index 581add2a7997d16dbf4c0152ebc5c72e789e395c..334fb47748c633097cf7f84cb7f7532ea5ad4b0f 100644 (file)
@@ -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)
@@ -334,7 +334,7 @@ e.g. `get_tld`]],
       return fun.filter(function(u) return map:get_key(tostring(u)) end, urls),'userdata_list'
     end,
     ['description'] = [[Get most specific urls, filtered by some map. Arguments are equal to the Lua API function]],
-    ['args_schema'] = {ts.array_of{ts.string, ts.shape{
+    ['args_schema'] = {ts.string, ts.shape{
       limit = ts.number + ts.string / tonumber,
       esld_limit = (ts.number + ts.string / tonumber):is_optional(),
       exclude_flags = url_flags_ts,
@@ -345,7 +345,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(),
-    }}}
+    }}
   },
   -- URLs filtered by flags
   ['urls_filtered'] = {