From: lombardofr Date: Tue, 16 Oct 2018 15:44:47 +0000 (+0200) Subject: fix regex for project name X-Git-Tag: v5.0.0~23 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6e240e970b0f01790b20cff77f2a49d1f66834b6;p=osm%2FLW-UI.git fix regex for project name Change-Id: I4197beda738e56331cddb54b0adc69d7bd281c1a Signed-off-by: lombardofr --- diff --git a/projecthandler/urls/project.py b/projecthandler/urls/project.py index 91c79c7..e69bd29 100644 --- a/projecthandler/urls/project.py +++ b/projecthandler/urls/project.py @@ -21,9 +21,9 @@ urlpatterns = [ url(r'^$', views.open_project, name='open_project'), url(r'^list/', views.user_projects, name='projects_list'), url(r'^new/', views.create_new_project, name='new_project'), - url(r'^(?P\w+)/delete$', views.delete_project, name='delete_project'), - url(r'^(?P\w+)/switch', views.switch_project, name='switch_project'), - url(r'^(?P\w+)/edit', views.edit_project, name='edit_project'), + url(r'^(?P[\w ]+)/delete$', views.delete_project, name='delete_project'), + url(r'^(?P[\w ]+)/switch', views.switch_project, name='switch_project'), + url(r'^(?P[\w ]+)/edit', views.edit_project, name='edit_project'), url(r'^descriptors/(?P\w+)/list$', views.show_descriptors, name='list_descriptors'), url(r'^descriptors/(?P\w+)/(?P[-\w]+)(/$)', views.edit_descriptor, name='edit_descriptor'),