summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/spamassassin.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-26 15:45:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-26 15:45:19 +0100
commit3bb8050316ac058839ed3bec79a20186e929ebd2 (patch)
tree2feb1975d192f42d2e311c1e60999f97986d11f5 /src/plugins/lua/spamassassin.lua
parent137477828efe3efdb99f813e73b7ed5a1c4570ab (diff)
downloadrspamd-3bb8050316ac058839ed3bec79a20186e929ebd2.tar.gz
rspamd-3bb8050316ac058839ed3bec79a20186e929ebd2.zip
[Minor] Fix operation
Diffstat (limited to 'src/plugins/lua/spamassassin.lua')
-rw-r--r--src/plugins/lua/spamassassin.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index 267be8ccf..eea8b86a6 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -700,7 +700,7 @@ local function process_sa_conf(f)
(function ()
l = lua_util.rspamd_str_trim(l)
-- Replace bla=~/re/ with bla =~ /re/ (#2372)
- l = l:gsub('([^%s])%s*[=!]~%s*([^%s])', '%1 =~ %2')
+ l = l:gsub('([^%s])%s*([=!]~)%s*([^%s])', '%1 %2 %3')
if string.len(l) == 0 or string.sub(l, 1, 1) == '#' then
return