diff options
-rw-r--r-- | lualib/lua_mime.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 5088f768d..da779b5f4 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) |