From: Vsevolod Stakhov Date: Thu, 26 Jul 2018 14:45:04 +0000 (+0100) Subject: [Minor] Fix operation X-Git-Tag: 1.7.9~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3bb8050316ac058839ed3bec79a20186e929ebd2;p=rspamd.git [Minor] Fix operation --- 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