diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 86939a1d7ea..e059f5830f5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -236,7 +236,7 @@ Gitlab::Application.routes.draw do constraints: { username: /.*/ } get '/u/:username' => 'users#show', as: :user, - constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } + constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } # # Dashboard Area @@ -263,7 +263,7 @@ Gitlab::Application.routes.draw do # # Groups Area # - resources :groups, constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } do + resources :groups, constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } do member do get :issues get :merge_requests @@ -295,7 +295,7 @@ Gitlab::Application.routes.draw do # Project Area # resources :namespaces, path: '/', constraints: { id: /[a-zA-Z.0-9_\-]+/ }, only: [] do - resources(:projects, constraints: { id: /[a-zA-Z.0-9_\-]+/ }, except: + resources(:projects, constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }, except: [:new, :create, :index], path: "/") do member do put :transfer |