From e4dbb877a320ad27592fb3cbfec0f45085c01012 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Sep 2019 18:42:52 +0100 Subject: [Minor] Lua_magic: Relax jpeg pattern --- lualib/lua_magic/patterns.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lualib/lua_magic') diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index 47026478b..5444361a2 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -397,9 +397,9 @@ local patterns = { weight = 60, }, { - string = [[^\x{ff}\x{d8}\x{ff}(?:[\x{e0}\x{e1}])]], + string = [[^\x{ff}\x{d8}\x{ff}]], weight = 60, - position = 4, + position = 3, }, }, }, -- cgit v1.2.3