From fb982a19bf9d859d9bcfc54fa8ae797b7d072aee Mon Sep 17 00:00:00 2001
From: Josef Moravec <josef.moravec@gmail.com>
Date: Fri, 5 Oct 2018 06:55:59 +0000
Subject: [PATCH] Bug 15734: Update missing filters test for json

0) Apply only the first patch of this bug report
1) Run qa tools on the first patch - should return missing filters on
AUDIO_ALERTS line
2) Apply this patch
3) Run qa test tools on both patches - should be OK

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 t/lib/QA/TemplateFilters.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm
index 2aa94b7..4f3eba8 100644
--- a/t/lib/QA/TemplateFilters.pm
+++ b/t/lib/QA/TemplateFilters.pm
@@ -75,6 +75,7 @@ sub missing_filters {
                   && $tt_block !~ m{=}            # assignment, maybe we should require to use SET (?)
                   && $tt_block !~ m{\|\s?ur(l|i)} # already has url or uri filter
                   && $tt_block !~ m{\|\s?html}    # already has html filter
+                  && $tt_block !~ m{\|\s?json}    # already has json filter
                   && $tt_block !~ m{^(?<before>\S+)\s+UNLESS\s+(?<after>\S+)} # Specific for [% foo UNLESS bar %]
                 ;
             }
-- 
2.1.4