Merge a branch from Guilherme Salgado that fixes launchpad code URLs

This commit is contained in:
Chris Jones 2012-07-10 20:18:47 +01:00
commit 88282b9f1d

View File

@ -31,7 +31,7 @@ class LaunchpadCodeURLHandler(plugin.URLHandler):
nameopen = "Open Launchpad branch" nameopen = "Open Launchpad branch"
namecopy = "Copy branch URL" namecopy = "Copy branch URL"
lpfilters = {} 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['group'] = '~%s' % lpfilters['project']
lpfilters['series'] = lpfilters['project'] lpfilters['series'] = lpfilters['project']
lpfilters['branch'] = '[a-zA-Z0-9]{1}[a-zA-Z0-9_+@.-]+' lpfilters['branch'] = '[a-zA-Z0-9]{1}[a-zA-Z0-9_+@.-]+'