aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_maps.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-13 15:32:26 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-13 15:32:26 +0000
commit87f77fb0c7b377e56ebe3563e9d7e6c056fbdece (patch)
treed833945905c9ab479db04fcdec3a97b5b4fa5552 /lualib/lua_maps.lua
parent149e4cccf34eaa6edefe91565d0295d7f45faf82 (diff)
downloadrspamd-87f77fb0c7b377e56ebe3563e9d7e6c056fbdece.tar.gz
rspamd-87f77fb0c7b377e56ebe3563e9d7e6c056fbdece.zip
[Minor] Grr, reverse
Diffstat (limited to 'lualib/lua_maps.lua')
-rw-r--r--lualib/lua_maps.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua
index a67e11b63..a912039be 100644
--- a/lualib/lua_maps.lua
+++ b/lualib/lua_maps.lua
@@ -295,9 +295,9 @@ local function rspamd_map_add_from_ucl(opt, mtype, description, callback)
if opt[1] then
local function check_plain_map(line)
- return lua_util.str_startswith('http', line)
- or lua_util.str_startswith('file:', line)
- or lua_util.str_startswith('/', line)
+ return lua_util.str_startswith(line, 'http')
+ or lua_util.str_startswith(line, 'file:')
+ or lua_util.str_startswith(line, '/')
end
-- Adjust each element if needed
local adjusted