提交 1db3228c 编写于 作者: V Valeriy Sizov

Merge pull request #778 from netdata/Allow_short_project_names

Allow short project names
......@@ -20,7 +20,7 @@ module Project::ValidationsTrait
:uniqueness => true,
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
:message => "only letters, digits & '_' '-' '.' allowed" },
:length => { :within => 3..255 }
:length => { :within => 1..255 }
validates :owner, :presence => true
validate :check_limit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册