diff options
author | Petr Vaněk <arkamar@atlas.cz> | 2024-01-20 15:22:22 +0100 |
---|---|---|
committer | Petr Vaněk <arkamar@atlas.cz> | 2024-01-22 11:35:08 +0100 |
commit | aaf4373418969e0011762c3e01697116f483ecc2 (patch) | |
tree | 32481d974f7cc28953f3138ca659b7d1ad26cde9 /lualib | |
parent | 4406dfbdd6fe16e464ac6198a7ef7a3e14fd23da (diff) | |
download | rspamd-aaf4373418969e0011762c3e01697116f483ecc2.tar.gz rspamd-aaf4373418969e0011762c3e01697116f483ecc2.zip |
[Fix] Use short comments rather than long one
Rspamd fails to start with Lua-5.1 because long comment does not allow
nesting, see [1]. This change replaces it to short comments in order to
fix the issue but preserves this part as comment in docs.
[1] https://www.lua.org/manual/5.1/manual.html#7.1
Bug: https://bugs.gentoo.org/922522
Fixes: b189c9fea633 ("[Minor] lua_maps docs: apply formatting")
Fixes: https://github.com/rspamd/rspamd/issues/4784
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_maps.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua index 1bcce6066..a88c4ca1a 100644 --- a/lualib/lua_maps.lua +++ b/lualib/lua_maps.lua @@ -561,9 +561,9 @@ exports.rspamd_maybe_check_map = rspamd_maybe_check_map -- optional = true, -- } -- } --- --[[ Then this function will look for opts.my_map parameter and try to replace it's with --- a map with the specific type, description but not failing if it was empty. --- It will also set options.my_map_orig to the original value defined in the map --]] +-- -- Then this function will look for opts.my_map parameter and try to replace it's with +-- -- a map with the specific type, description but not failing if it was empty. +-- -- It will also set options.my_map_orig to the original value defined in the map. --]] exports.fill_config_maps = function(mname, opts, map_defs) assert(type(opts) == 'table') |