Project

General

Profile

Bug #5588

wrong rendering of issue tracker pattern

Added by Olivier Renaud 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
29.01.2020
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

Consider this issue tracker pattern rule:

Pattern: (?i)\b(?P(ABC|DEF)-\d+)\b
Url: https://jira.mycompany.com/browse/${issue_id}

The pattern correctly matches "abc-123" and creates the correct link, but the text rendered is "abc-123abc".

It seems that the combination of a named group and an anonymous capturing group causes this problem. If I make the group non-capturable, it fixes the rendering:

Pattern: (?i)\b(?P(?:ABC|DEF)-\d+)\b
Url: https://jira.mycompany.com/browse/${issue_id}

Also available in: Atom PDF