From 8062da9e666ca4f040f31fd4dfc0571f10c715d9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Jun 2021 13:51:18 +0100 Subject: [PATCH] [Minor] Add ASICE format support Issue: #3790 --- lualib/lua_magic/heuristics.lua | 3 ++- lualib/lua_magic/types.lua | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index e9f8f847e..01fa046c0 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -55,7 +55,8 @@ local zip_patterns = { [[mimetypeapplication/vnd\.oasis\.opendocument\.chart]] }, odp = {[[mimetypeapplication/vnd\.oasis\.opendocument\.presentation]]}, - epub = {[[epub\+zip]]} + epub = {[[epub\+zip]]}, + asice = {[[mimetypeapplication/vnd\.etsi\.asic-e\+zipPK]]}, } local txt_trie diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index 32f9f4e73..5ab50d9bc 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -125,6 +125,11 @@ local types = { ct = 'application/x-alz', type = 'archive', }, + -- https://en.wikipedia.org/wiki/Associated_Signature_Containers + asice = { + ct = 'application/vnd.etsi.asic-e+zip', + type = 'archive' + }, xar = { ct = 'application/x-xar', type = 'archive', -- 2.39.5