summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 39ca8e327..267be8ccf 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')
if string.len(l) == 0 or string.sub(l, 1, 1) == '#' then
return