Remove extra chars in launchpad bug links
Add a new commentlink section in gerrit.config that parses launchpad bug links pattern and removes any trailing char after the bug number, to prevent including dots, question marks or any other trailing char to be included in the link Closes-Bug: 1222217 Change-Id: I402b75cea39cda01829bee6b1762e9abe54d85d4
This commit is contained in:
parent
a0211b5d56
commit
5442230546
@ -147,6 +147,11 @@ class openstack_project::gerrit (
|
||||
match => '<li>([^ ]+) <a href=\"[^\"]+\">([^<]+)</a> : ([^ ]+)([^<]*)</li>',
|
||||
html => '<li><span class=\"comment_test_name\"><a href=\"$2\">$1</a></span> <span class=\"comment_test_result\"><span class=\"result_$3\">$3</span>$4</span></li>',
|
||||
},
|
||||
{
|
||||
name => 'launchpadbug',
|
||||
match => '<a href=\"(https://bugs\\.launchpad\\.net/[a-zA-Z0-9\\-]+/\\+bug/(\\d+))[^\"]+\">[^<]+</a>',
|
||||
html => '<a href=\"$1\">$1</a>'
|
||||
}
|
||||
],
|
||||
war => $war,
|
||||
contactstore => $contactstore,
|
||||
|
Loading…
x
Reference in New Issue
Block a user