From 3b1b8647ee073833de6ddb6a568a70efcc745c96 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 --- 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 5df4fd814b..cc8c07bd79 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -157,6 +157,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.20.1