From: Vsevolod Stakhov Date: Wed, 11 Feb 2026 09:54:30 +0000 (+0000) Subject: [Fix] Fix missing inline comments in mapstats output X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86a90230e6175e6b5f83d49515a94f478e7d5c2c;p=thirdparty%2Frspamd.git [Fix] Fix missing inline comments in mapstats output rspamd_regexp_search() truncates captures at the first unmatched optional group, so when the score group was absent the comment group was lost. Extract comments with Lua patterns before passing the line body to rspamd_regexp. --- diff --git a/lualib/rspamadm/mapstats.lua b/lualib/rspamadm/mapstats.lua index 137f80ca42..43b386f2cd 100644 --- a/lualib/rspamadm/mapstats.lua +++ b/lualib/rspamadm/mapstats.lua @@ -53,8 +53,8 @@ parser:option "-x --exclude-logs" :convert(tonumber) local re_non_file_url = rspamd_regexp.create('/^.*(?