diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-27 09:49:23 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2019-02-24 12:58:40 -0500 |
commit | c83f009ce27bf04cf130347a3e00559c76d62138 (patch) | |
tree | 694af9f8040f69e5780a9e56511980eac595c4d7 | |
parent | 490ee6f9817808a979a67be800eb44f2b4b3d7df (diff) |
Allow '~' in repo names
-rw-r--r-- | packages/urls.py | 4 |
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)), ) |