diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-17 17:28:11 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-17 17:28:11 +0000 |
commit | c31bd562f5bae2945b7e386f9c828c496d1dc270 (patch) | |
tree | 9eadb8ca64e4f6236e81ac66a62411668230283a /src/lua | |
parent | 48b97b59c59f6d5c32f905cdeb329c7019997be3 (diff) | |
download | rspamd-c31bd562f5bae2945b7e386f9c828c496d1dc270.tar.gz rspamd-c31bd562f5bae2945b7e386f9c828c496d1dc270.zip |
Distinguish between logic and arithmetic ops.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_expression.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c index 7c166cc68..55b0c1556 100644 --- a/src/lua/lua_expression.c +++ b/src/lua/lua_expression.c @@ -37,14 +37,14 @@ require "fun" () local rspamd_expression = require "rspamd_expression" local rspamd_mempool = require "rspamd_mempool" -local parse_func(str) +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.join('', take_while(function(s) return s ~= ' ' end, str)) -- Return token name return token end -local process_func(token, task) +local function process_func(token, task) -- Do something using token and task end |