Commit ae68a66a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6478 from infoMantisGmbH/master

Allow underscore as the first char for project names.
parents 4b946690 61a72bc2
......@@ -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
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