From afaa9500bb5b70e7e8d940ada684fff6e94793bc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 11 May 2020 17:03:00 +0100 Subject: [Minor] Further improve patterns --- lualib/lua_magic/patterns.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lualib/lua_magic/patterns.lua') 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 -- cgit v1.2.3