From: Alexander Moisseev Date: Wed, 11 Feb 2026 06:41:23 +0000 (+0300) Subject: [Minor] Handle blank lines in mapstats maps X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=862ab1631cd634bb1c3b6e9850a91ac590cedcaf;p=thirdparty%2Frspamd.git [Minor] Handle blank lines in mapstats maps Replace regex-based empty line detection with Lua pattern matching to correctly identify and preserve blank lines instead of treating them as syntax errors. --- diff --git a/lualib/rspamadm/mapstats.lua b/lualib/rspamadm/mapstats.lua index 81fc9e8e21..c6f2950b96 100644 --- a/lualib/rspamadm/mapstats.lua +++ b/lualib/rspamadm/mapstats.lua @@ -54,7 +54,6 @@ parser:option "-x --exclude-logs" local re_non_file_url = rspamd_regexp.create('/^.*(?