Bug 31883: Filter trim causes false warnings
Test plan:
Run xt/find-missing-filters.t
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 246efd2e9b
)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
708b8d996a
commit
43ba61af5b
1 changed files with 3 additions and 0 deletions
|
@ -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{^(?<before>\S+)\s+UNLESS\s+(?<after>\S+)}
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue