From 765a46c4642fc00a0f2b3b10b9e35bea12f947fd Mon Sep 17 00:00:00 2001 From: Stephen Niedzielski Date: Thu, 9 Aug 2018 09:01:45 -0500 Subject: [PATCH] Fix: add a few more POV templates to issue parser Bug: T191528 Change-Id: I777921798fee447dc3c954a585e418371e2866e8 --- resources/skins.minerva.scripts/pageIssueParser.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/skins.minerva.scripts/pageIssueParser.js b/resources/skins.minerva.scripts/pageIssueParser.js index 0ad66df..5e88123 100644 --- a/resources/skins.minerva.scripts/pageIssueParser.js +++ b/resources/skins.minerva.scripts/pageIssueParser.js @@ -57,18 +57,24 @@ }, // As above but used to identify specific templates requiring icon customization. TYPE_REGEX = { - MOVE: /ambox-move|ambox-merge|avviso-struttura/, // en, es / ru, it + MOVE: /ambox-converted|ambox-move|ambox-merge|avviso-struttura/, // en, es / ru, it POINT_OF_VIEW: new RegExp( [ // en - 'ambox-POV', 'ambox-Advert', 'ambox-autobiography', 'ambox-believerpov', 'ambox-COI', + 'ambox-coverage', + 'ambox-criticism', 'ambox-fanpov', + 'ambox-fringe-theories', + 'ambox-geographical-imbalance', 'ambox-globalize', 'ambox-npov-language', - 'ambox-fringe-theories', - 'ambox-systemic-bias' + 'ambox-POV', + 'ambox-pseudo', + 'ambox-systemic-bias', + 'ambox-unbalanced', + 'ambox-usgovtpov' ].join( '|' ) ) // ..And everything else that doesn't match is mapped to a "SEVERITY" type. },