From 052ccc761e2e9000ed11fcdd121585da77256bf6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 23 Oct 2019 17:03:19 +0100 Subject: [Feature] Support uuencoding --- lualib/lua_magic/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lualib/lua_magic') diff --git a/lualib/lua_magic/init.lua b/lualib/lua_magic/init.lua index d87e40d58..2bfc067e3 100644 --- a/lualib/lua_magic/init.lua +++ b/lualib/lua_magic/init.lua @@ -228,6 +228,8 @@ local function match_chunk(chunk, input, tlen, offset, trie, processed_tbl, log_ for _,position in ipairs(match.positions) do local matched = false for _,pos in ipairs(matched_positions) do + lua_util.debugm(N, log_obj, 'found match %s at offset %s(from %s)', + pattern.ext, pos, offset) if not match_position(pos + offset, position) then matched = true break -- cgit v1.2.3