Commit c808295e9ef21105b8d4cc610b6749a0f3e30377
1 parent
2176e2c9
Exists in
master
and in
4 other branches
Allow short project names
We have some projects which a length of 2. With this I lower the minimum lenght to 1. As I could not found a specific reason why it is set to 3...
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/project/validations_trait.rb
... | ... | @@ -20,7 +20,7 @@ module Project::ValidationsTrait |
20 | 20 | :uniqueness => true, |
21 | 21 | :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, |
22 | 22 | :message => "only letters, digits & '_' '-' '.' allowed" }, |
23 | - :length => { :within => 3..255 } | |
23 | + :length => { :within => 1..255 } | |
24 | 24 | |
25 | 25 | validates :owner, :presence => true |
26 | 26 | validate :check_limit | ... | ... |