From 5feb1d136fae75deae0fbcd5f6d3cabcc4b20188 Mon Sep 17 00:00:00 2001 From: Bob Ball Date: Fri, 12 Jul 2013 17:13:02 +0100 Subject: [PATCH] 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 --- modules/openstack_project/manifests/gerrit.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index 2cab53df22..ae7db8c68a 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -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', }, ],