summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-27 09:49:23 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-01-15 13:41:23 -0500
commite6c0f94cb5e5ffaba13d7927afb08c523d598f12 (patch)
treebdae249399254ac6ef342dfcac6c84c4484693ab
parent6c3797061849dc80c9c60505af8865dc30c8e458 (diff)
Allow '~' in repo names
-rw-r--r--packages/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/urls.py b/packages/urls.py
index 4e2e2638..dfe19207 100644
--- a/packages/urls.py
+++ b/packages/urls.py
@@ -32,10 +32,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)),
)