]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_magic: Slight re tune
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Aug 2021 13:01:53 +0000 (14:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Aug 2021 13:01:53 +0000 (14:01 +0100)
lualib/lua_magic/heuristics.lua

index 2571346b4bf840f97bb7b2f18d1ace03b427c372..376e19cd409fa7dc09ea96e908488b0ddb8e13a0 100644 (file)
@@ -83,7 +83,7 @@ local txt_patterns = {
     {[[^BEGIN:VCARD\r?\n]], 40},
   },
   xml = {
-    {[[(?i)\s*<\?xml\b.+\?>]], 31},
+    {[[<\?xml\b.+\?>]], 31},
   }
 }