From 09ba746a15cc3d223398e79c6fd2a4ae141a0f54 Mon Sep 17 00:00:00 2001 From: Guilherme Salgado Date: Fri, 25 May 2012 16:59:40 -0300 Subject: [PATCH] Fix LaunchpadCodeURLHandler so that it properly detects lp: URLs when the project name contains hyphens --- terminatorlib/plugins/url_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/plugins/url_handlers.py b/terminatorlib/plugins/url_handlers.py index 6c1f75eb..436406e0 100644 --- a/terminatorlib/plugins/url_handlers.py +++ b/terminatorlib/plugins/url_handlers.py @@ -31,7 +31,7 @@ class LaunchpadCodeURLHandler(plugin.URLHandler): nameopen = "Open Launchpad branch" namecopy = "Copy branch URL" lpfilters = {} - lpfilters['project'] = '[a-z0-9]{1}[a-z0-9\.\-\+]+' + lpfilters['project'] = '[a-z0-9]{1}[a-z0-9+.-]+' lpfilters['group'] = '~%s' % lpfilters['project'] lpfilters['series'] = lpfilters['project'] lpfilters['branch'] = '[a-zA-Z0-9]{1}[a-zA-Z0-9_+@.-]+'