Commit ae68a66a98337201ab2f00a61d8960699acaa349

Authored by Dmitriy Zaporozhets
2 parents 4b946690 61a72bc2

Merge pull request #6478 from infoMantisGmbH/master

Allow underscore as the first char for project names.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/gitlab/regex.rb
... ... @@ -7,7 +7,7 @@ module Gitlab
7 7 end
8 8  
9 9 def project_name_regex
10   - /\A[a-zA-Z0-9][a-zA-Z0-9_\-\. ]*\z/
  10 + /\A[a-zA-Z0-9_][a-zA-Z0-9_\-\. ]*\z/
11 11 end
12 12  
13 13 def name_regex
... ... @@ -49,7 +49,7 @@ module Gitlab
49 49 protected
50 50  
51 51 def default_regex
52   - /\A[.?]?[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?<!\.git)\z/
  52 + /\A[.?]?[a-zA-Z0-9_][a-zA-Z0-9_\-\.]*(?<!\.git)\z/
53 53 end
54 54 end
55 55 end
... ...