Bug 22466: Do not ask for TT methods to be filtered

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2019-03-06 11:59:55 -03:00 committed by Nick Clemens
parent c7ef8e6b2d
commit 158b3c3a4c
1 changed files with 7 additions and 0 deletions

View File

@ -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{^\#}