Commit a3b6a3ed3552cbbdc74971a1261c668d1365412f
1 parent
926f3013
Exists in
master
and in
4 other branches
Updated error messages to include dot as valid character
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/models/project.rb
@@ -26,7 +26,7 @@ class Project < ActiveRecord::Base | @@ -26,7 +26,7 @@ class Project < ActiveRecord::Base | ||
26 | :uniqueness => true, | 26 | :uniqueness => true, |
27 | :presence => true, | 27 | :presence => true, |
28 | :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, | 28 | :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, |
29 | - :message => "only letters, digits & '_' '-' allowed" }, | 29 | + :message => "only letters, digits & '_' '-' '.' allowed" }, |
30 | :length => { :within => 0..255 } | 30 | :length => { :within => 0..255 } |
31 | 31 | ||
32 | validates :description, | 32 | validates :description, |
@@ -36,7 +36,7 @@ class Project < ActiveRecord::Base | @@ -36,7 +36,7 @@ class Project < ActiveRecord::Base | ||
36 | :presence => true, | 36 | :presence => true, |
37 | :uniqueness => true, | 37 | :uniqueness => true, |
38 | :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, | 38 | :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, |
39 | - :message => "only letters, digits & '_' '-' allowed" }, | 39 | + :message => "only letters, digits & '_' '-' '.' allowed" }, |
40 | :length => { :within => 3..255 } | 40 | :length => { :within => 3..255 } |
41 | 41 | ||
42 | validates :owner, | 42 | validates :owner, |