Commit 117a078c authored by Mike Greiling's avatar Mike Greiling

use standard gitlab namespace regex for group name validation

parent 6a23fb30
...@@ -13,8 +13,9 @@ ...@@ -13,8 +13,9 @@
.input-group-addon .input-group-addon
= root_url = root_url
= f.text_field :path, placeholder: 'open-source', class: 'form-control', = f.text_field :path, placeholder: 'open-source', class: 'form-control',
autofocus: local_assigns[:autofocus] || false, pattern: "[a-zA-Z0-9-_\\.]+", autofocus: local_assigns[:autofocus] || false, required: true,
required: true, title: 'Please choose a group name with no special characters.' pattern: Gitlab::Regex::NAMESPACE_REGEX_STR_SIMPLE,
title: 'Please choose a group name with no special characters.'
- if @group.persisted? - if @group.persisted?
.alert.alert-warning.prepend-top-10 .alert.alert-warning.prepend-top-10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment