diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-11 10:13:52 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-11 10:13:52 +0200 |
commit | ae68a66a98337201ab2f00a61d8960699acaa349 (patch) | |
tree | cd44836f29c9c9afd6fc3ee96b6c16d98b4dfe7c /lib | |
parent | 4b9466903fc46776870f1330cb077d4842efcbab (diff) | |
parent | 61a72bc2e22548e7c216cf4499ced0841ff521cf (diff) | |
download | gitlab-ce-ae68a66a98337201ab2f00a61d8960699acaa349.tar.gz |
Merge pull request #6478 from infoMantisGmbH/master
Allow underscore as the first char for project names.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index d18fc8bf2ce..e932b64f4f0 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -7,7 +7,7 @@ module Gitlab end def project_name_regex - /\A[a-zA-Z0-9][a-zA-Z0-9_\-\. ]*\z/ + /\A[a-zA-Z0-9_][a-zA-Z0-9_\-\. ]*\z/ end def name_regex @@ -49,7 +49,7 @@ module Gitlab protected def default_regex - /\A[.?]?[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?<!\.git)\z/ + /\A[.?]?[a-zA-Z0-9_][a-zA-Z0-9_\-\.]*(?<!\.git)\z/ end end end |