From: Vsevolod Stakhov Date: Thu, 26 Jul 2018 10:20:54 +0000 (+0100) Subject: [Minor] Spill on '!~' as well X-Git-Tag: 1.7.9~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a40fd90f81de1411c54ee5e14fdfdd9905c2009f;p=rspamd.git [Minor] Spill on '!~' as well --- 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