diff mbox

[kteam-tools] ktl: Accept more whitespace in bug numbers match

Message ID 1472051056-9747-1-git-send-email-kamal@canonical.com
State New
Headers show

Commit Message

Kamal Mostafa Aug. 24, 2016, 3:04 p.m. UTC
Allow for extra(neous) whitespace between bug numbers.

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 ktl/debian.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Bader Aug. 29, 2016, 2:17 p.m. UTC | #1
Looks to be ok
Seth Forshee Aug. 31, 2016, 5:09 p.m. UTC | #2

Tim Gardner Sept. 1, 2016, 12:58 p.m. UTC | #3

diff mbox

Patch

diff --git a/ktl/debian.py b/ktl/debian.py
index 9ba2836..4c64a1c 100644
--- a/ktl/debian.py
+++ b/ktl/debian.py
@@ -30,7 +30,7 @@  class Debian:
 
     package_rc = compile("^(linux[-\S])*.*$")
     ver_rc     = compile("^linux[-\S]* \(([0-9]+\.[0-9]+\.[0-9]+[-\.][0-9]+\.[0-9]+[~a-z0-9]*)\).*$")
-    bug_rc = compile("LP:\s#[0-9]+(?:,\s#[0-9]+)*")
+    bug_rc = compile("LP:\s*#[0-9]+(?:\s*,\s*#[0-9]+)*")
     bug_nr_rc = compile("#([0-9]+)")
 
     # debian_directories