summaryrefslogtreecommitdiff
path: root/config/routes/group.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-08 12:51:51 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-08 12:51:51 +0000
commit7be41074bb6596a41a5b6689ee98ab02cf4be50a (patch)
tree4353065dcd40dec5863f7ce6821fb30e435f1cdc /config/routes/group.rb
parentfa88474ab5bdd664bbc62b09ec3d049fb2af55bd (diff)
parent34962c7d0833f222aaaea9d6b042542801177699 (diff)
downloadgitlab-ce-7be41074bb6596a41a5b6689ee98ab02cf4be50a.tar.gz
Merge branch 'dz-refactor-namespace-regex' into 'master'
Refactor namespace regex Reuse existing namespace regex constant in routing See merge request !7336
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r--config/routes/group.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb
index faec3f0ad56..3c392f77ef6 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -3,7 +3,7 @@ require 'constraints/group_url_constrainer'
constraints(GroupUrlConstrainer.new) do
scope(path: ':id',
as: :group,
- constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ },
+ constraints: { id: Gitlab::Regex.namespace_route_regex },
controller: :groups) do
get '/', action: :show
patch '/', action: :update