Project

General

Profile

Actions

Bug #5588

open

wrong rendering of issue tracker pattern

Added by Olivier Renaud almost 5 years 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}

No data to display

Actions

Also available in: Atom PDF