From f335d1fabf8392b612a7f9f717f91bec985f2e0a Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 23 Oct 2013 09:54:45 -0400 Subject: [PATCH] fix bug regex to allow for spaces after colon This will match spaces after the : Bug: 12345 Bug: #12345 Start and end anchors dropped as we are parsing across the whole commit comment, not line by line Change-Id: I3c67fd90cf5156d872f4696d78cdb86cdfb766f0 --- modules/openstack_project/manifests/gerrit.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index e62aed2f44..8f0e10eed4 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -131,7 +131,7 @@ class openstack_project::gerrit ( }, { name => 'bugheader', - match => '^([Cc]loses|[Pp]artial|[Rr]elated)-[Bb]ug:[\\s#]?(\\d+)$', + match => '([Cc]loses|[Pp]artial|[Rr]elated)-[Bb]ug:\\s*#?(\\d+)', link => 'https://launchpad.net/bugs/$2', }, {