aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_expression.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_expression.c')
-rw-r--r--src/lua/lua_expression.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c
index 60ee8fdf7..b2addd30c 100644
--- a/src/lua/lua_expression.c
+++ b/src/lua/lua_expression.c
@@ -36,12 +36,12 @@ local rspamd_mempool = require "rspamd_mempool"
local function parse_func(str)
-- extract token till the first space character
- local token = table.join('', take_while(function(s) return s ~= ' ' end, str))
+ local token = table.concat(totable(take_while(function(s) return s ~= ' ' end, iter(str))))
-- Return token name
return token
end
-local function process_func(token, task)
+local function process_func(token)
-- Do something using token and task
end