From 1ded5c8e0637441e65379cb16d354def60c6962f Mon Sep 17 00:00:00 2001 From: Nicklas Lindgren Date: Tue, 7 Jun 2016 12:09:48 +0200 Subject: [PATCH] Add support for parsing HuBoard format stage labels This change modifies stage_regexp so that it simultaneously matches KB[stage]-labels and HuBoard-style labels, making migration from GitHub/HuBoard easier. The HuBoard label format looks like "1 - Backlog". --- src/board/board.module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/board.module.js b/src/board/board.module.js index 023ce63..1f14134 100644 --- a/src/board/board.module.js +++ b/src/board/board.module.js @@ -164,7 +164,7 @@ $markdownProvider.registerPlugin(window.markdownitEmoji); $markdownProvider.registerPlugin(window.md_twemoji_plugin); }]) - .constant('stage_regexp', /KB\[stage\]\[(\d+)\]\[(.*?)\]/) + .constant('stage_regexp', /(?:KB\[stage\]\[)?(\d+)(?:\]\[| - )([^\]]*)(?:\])?/) .constant('priority_regexp', /KB\[priority\]\[(\d+)\]\[(.*?)\]/) ; }) (window.angular, window.CLIENT_VERSION); -- GitLab