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 commit246efd2e9b) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit43ba61af5b) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
13f3157080
commit
2316dc2be5
|
|
@ -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 New Issue