Skip to content
Snippets Groups Projects
Commit 117a078c authored by Mike Greiling's avatar Mike Greiling
Browse files

use standard gitlab namespace regex for group name validation

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