Fix LaunchpadCodeURLHandler so that it properly detects lp: URLs when the project name contains hyphens

This commit is contained in:
Guilherme Salgado 2012-05-25 16:59:40 -03:00
parent 98965d52df
commit 09ba746a15
1 changed files with 1 additions and 1 deletions

View File

@ -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_+@.-]+'