Bug 22223: t::lib::QA::TemplateFilters missing built-in TT filter "safe_url" causes false warnings

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
David Cook 2024-11-07 01:37:14 +00:00 committed by Katrin Fischer
parent e8e00cfeb3
commit fe495d19df
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ sub process_tt_block {
# Already has trim filter
or $tt_block =~ m{\|\s?trim}
# Already has safe_url filter
or $tt_block =~ m{\|\s?safe_url}
# Specific for [% foo UNLESS bar %]
or $tt_block =~ m{^(?<before>\S+)\s+UNLESS\s+(?<after>\S+)}
;