From d6f2dc67078d48e2623d5920e202c888300bd685 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 Nov 2019 13:59:50 +0000 Subject: [PATCH] [Minor] Lua_magic: Add ical and vcard support --- lualib/lua_magic/heuristics.lua | 46 +++++++++++++++++++-------------- lualib/lua_magic/types.lua | 10 +++++++ 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index 3da6a84ab3..d9d4081702 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -61,18 +61,24 @@ local zip_patterns = { local txt_trie local txt_patterns = { html = { - [[(?i)\s*