support urls with '-' in the name of project

This commit is contained in:
Romain Bignon 2011-03-12 11:19:54 +01:00
commit b64ca36fbe

View file

@ -35,8 +35,8 @@ class RedmineBrowser(BaseBrowser):
PAGES = {'%s/': IndexPage,
'%s/login': LoginPage,
'%s/my/page': MyPage,
'%s/projects/(\w+)/wiki/(\w+)/edit': WikiEditPage,
'%s/projects/\w+/wiki/\w*': WikiPage,
'%s/projects/([\w-]+)/wiki/(\w+)/edit': WikiEditPage,
'%s/projects/[\w-]+/wiki/\w*': WikiPage,
}
def __init__(self, url, *args, **kwargs):