aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic/patterns.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-11 17:03:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-11 17:03:00 +0100
commitafaa9500bb5b70e7e8d940ada684fff6e94793bc (patch)
tree93302d76f2ff9938ab8e0709c1918a744a0b5be9 /lualib/lua_magic/patterns.lua
parent2c07393bed68704178a0f7661212253756522766 (diff)
downloadrspamd-afaa9500bb5b70e7e8d940ada684fff6e94793bc.tar.gz
rspamd-afaa9500bb5b70e7e8d940ada684fff6e94793bc.zip
[Minor] Further improve patterns
Diffstat (limited to 'lualib/lua_magic/patterns.lua')
-rw-r--r--lualib/lua_magic/patterns.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua
index f741900ce..a19aba03c 100644
--- a/lualib/lua_magic/patterns.lua
+++ b/lualib/lua_magic/patterns.lua
@@ -26,13 +26,13 @@ local patterns = {
-- These are alternatives
matches = {
{
- string = [[^%PDF-\d]],
+ string = [[%PDF-[12]\.\d]],
position = {'<=', 1024},
weight = 60,
heuristic = heuristics.pdf_format_heuristic
},
{
- string = [[^%FDF-\d]],
+ string = [[%FDF-[12]\.\d]],
position = {'<=', 1024},
weight = 60,
heuristic = heuristics.pdf_format_heuristic