commit 333b82b: [Minor] Lua_magic: Slight re tune

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Aug 13 13:07:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-08-13 14:01:53 +0100
URL: https://github.com/rspamd/rspamd/commit/333b82b2bf8b014b55268881897251d55c3cdca0 (HEAD -> master)

[Minor] Lua_magic: Slight re tune

---
 lualib/lua_magic/heuristics.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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},
   }
 }
 


More information about the Commits mailing list