Fix blueprint and bug parser to require a separator
Previously failed with direct URLs, e.g. https://blueprint.lau... Have tested with python checking strings such as "bp: 4", "bp4" (fail) and the same for "bug4" "bug:4" "bug: 4" etc. Change-Id: I2e35286935ca648d48e4c7c18132990387d279cb
This commit is contained in:
parent
caacc138e3
commit
5feb1d136f
@ -131,12 +131,12 @@ class openstack_project::gerrit (
|
||||
},
|
||||
{
|
||||
name => 'launchpad',
|
||||
match => '(\\b[Bb]ug|[Ll][Pp]\\b)[ \\t#:]*(\\d+)',
|
||||
match => '(\\b[Bb]ug\\b|\\b[Ll][Pp]\\b)[ \\t#:]*(\\d+)',
|
||||
link => 'https://code.launchpad.net/bugs/$2',
|
||||
},
|
||||
{
|
||||
name => 'blueprint',
|
||||
match => '(\\b[Bb]lue[Pp]rint|[Bb][Pp]\\b)[ \\t#:]*([A-Za-z0-9\\-]+)',
|
||||
match => '(\\b[Bb]lue[Pp]rint\\b|\\b[Bb][Pp]\\b)[ \\t#:]*([A-Za-z0-9\\-]+)',
|
||||
link => 'https://blueprints.launchpad.net/openstack/?searchtext=$2',
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user