diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-11-22 23:50:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-11-22 23:50:55 +0000 |
commit | de2f7aa04e13e3691d91dfa4cf4d15fe744819ea (patch) | |
tree | 3421df4c796e891073422e1a9c5de7c4fd63d68b /lualib/lua_selectors/init.lua | |
parent | 5858739fec90975fb2067374b06999dc8344597d (diff) | |
download | rspamd-de2f7aa04e13e3691d91dfa4cf4d15fe744819ea.tar.gz rspamd-de2f7aa04e13e3691d91dfa4cf4d15fe744819ea.zip |
[Minor] Add tests and fix some minor issues
Diffstat (limited to 'lualib/lua_selectors/init.lua')
-rw-r--r-- | lualib/lua_selectors/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors/init.lua b/lualib/lua_selectors/init.lua index 01b43756a..12bc7f2b9 100644 --- a/lualib/lua_selectors/init.lua +++ b/lualib/lua_selectors/init.lua @@ -546,7 +546,7 @@ exports.kv_table_from_pairs = function(log_obj, selectors, _) tbl_len) return end - for i=1,#tbl_len,2 do + for i=1,tbl_len,2 do local k = tostring(tbl[i]) local v = tbl[i + 1] if type(v) == 'string' then |