diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-11 17:03:00 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-11 17:03:00 +0100 |
commit | afaa9500bb5b70e7e8d940ada684fff6e94793bc (patch) | |
tree | 93302d76f2ff9938ab8e0709c1918a744a0b5be9 /lualib | |
parent | 2c07393bed68704178a0f7661212253756522766 (diff) | |
download | rspamd-afaa9500bb5b70e7e8d940ada684fff6e94793bc.tar.gz rspamd-afaa9500bb5b70e7e8d940ada684fff6e94793bc.zip |
[Minor] Further improve patterns
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_magic/patterns.lua | 4 |
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 |