diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-11 18:21:18 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-11 18:21:18 -0500 |
commit | f286e9560e63a776397494899673b103f92f3198 (patch) | |
tree | 0c2458d315e80f187d1d33c24fcc06cd780bfa77 | |
parent | 3d122f711a481e2357d53ffee9e091a4581b8df6 (diff) |
allow repo names to contain '~' in the router
-rw-r--r-- | packages/urls.py | 4 | ||||
-rw-r--r-- | urls.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/urls.py b/packages/urls.py index 52b09d2c..4be56297 100644 --- a/packages/urls.py +++ b/packages/urls.py @@ -30,10 +30,10 @@ urlpatterns = patterns('packages.views', (r'^(?P<name>[^ /]+)/$', 'details'), - (r'^(?P<repo>[A-z0-9\-]+)/(?P<name>[^ /]+)/$', + (r'^(?P<repo>[A-z0-9~\-]+)/(?P<name>[^ /]+)/$', 'details'), # canonical package url. subviews defined above - (r'^(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[^ /]+)/', + (r'^(?P<repo>[A-z0-9~\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[^ /]+)/', include(package_patterns)), ) @@ -31,7 +31,7 @@ feeds_patterns = patterns('', (r'^packages/$', cache_page(300)(PackageFeed())), (r'^packages/(?P<arch>[A-z0-9]+)/$', cache_page(300)(PackageFeed())), - (r'^packages/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9\-]+)/$', + (r'^packages/(?P<arch>[A-z0-9]+)/(?P<repo>[A-z0-9~\-]+)/$', cache_page(300)(PackageFeed())), ) |