From 1174a5b2213dfdd524b307bfec6471d728bc7a53 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 28 Oct 2020 10:30:49 +0000 Subject: [PATCH] [Minor] Add matches flag --- lualib/lua_mime.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 5088f768d5..da779b5f40 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -306,6 +306,7 @@ local function do_replacement (task, part, mp, replacements, return end + state.has_matches = true -- now sort flattened by start of match and eliminate all overlaps table.sort(matches_flattened, function(m1, m2) return m1[1][1] < m2[1][1] end) -- 2.47.3