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:
Mason James 2022-10-20 13:26:17 +13:00 committed by Lucas Gass
parent 708b8d996a
commit 43ba61af5b

View file

@ -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+)}
;