From 43ba61af5b5bee76c205506f34f2fe05ef4943d9 Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 20 Oct 2022 13:26:17 +1300 Subject: [PATCH] Bug 31883: Filter trim causes false warnings Test plan: Run xt/find-missing-filters.t Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 246efd2e9b843f3a2920fcf0a0414280e6f1a1c2) Signed-off-by: Lucas Gass --- t/lib/QA/TemplateFilters.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index d341d72199..26ae797230 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -156,6 +156,9 @@ sub process_tt_block { # Already has url or uri filter or $tt_block =~ m{\|\s?ur(l|i)} + # Already has trim filter + or $tt_block =~ m{\|\s?trim} + # Specific for [% foo UNLESS bar %] or $tt_block =~ m{^(?\S+)\s+UNLESS\s+(?\S+)} ; -- 2.39.5