BigW Consortium Gitlab

Commit 117a078c by Mike Greiling

use standard gitlab namespace regex for group name validation

parent 6a23fb30
......@@ -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
......
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