提交 ae68a66a 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #6478 from infoMantisGmbH/master

Allow underscore as the first char for project names.
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册