From: Vsevolod Stakhov Date: Fri, 13 Aug 2021 13:01:53 +0000 (+0100) Subject: [Minor] Lua_magic: Slight re tune X-Git-Tag: 3.0~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=333b82b2bf8b014b55268881897251d55c3cdca0;p=rspamd.git [Minor] Lua_magic: Slight re tune --- diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index 2571346b4..376e19cd4 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -83,7 +83,7 @@ local txt_patterns = { {[[^BEGIN:VCARD\r?\n]], 40}, }, xml = { - {[[(?i)\s*<\?xml\b.+\?>]], 31}, + {[[<\?xml\b.+\?>]], 31}, } }