From 158b3c3a4cfc8a97cc98a3473ca70395fdb398e1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Mar 2019 11:59:55 -0300 Subject: [PATCH] Bug 22466: Do not ask for TT methods to be filtered Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- t/lib/QA/TemplateFilters.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index 0fce6da9b2..dad22df4b8 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -27,6 +27,10 @@ our @tt_directives = ( qr{^\s*LAST}, ); +our @tt_methods = ( + qr{\.push\(}, +); + sub fix_filters { return _process_tt_content( @_ )->{new_content}; } @@ -128,6 +132,9 @@ sub process_tt_block { # It's a TT directive, no filters needed grep { $tt_block =~ $_ } @tt_directives + # It's a TT method + or grep { $tt_block =~ $_ } @tt_methods + # It is a comment or $tt_block =~ m{^\#} -- 2.39.5