Commit 1f3bdd453e8dfb81b97166ede481685d85ea04c6
1 parent
3de42718
Exists in
master
and in
4 other branches
Allow spaces in project name
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/project.rb
| ... | ... | @@ -66,7 +66,7 @@ class Project < ActiveRecord::Base |
| 66 | 66 | validates :description, length: { within: 0..2000 } |
| 67 | 67 | validates :name, presence: true, length: { within: 0..255 }, |
| 68 | 68 | format: { with: Gitlab::Regex.project_name_regex, |
| 69 | - message: "only letters, digits & '_' '-' '.' allowed. Letter should be first" } | |
| 69 | + message: "only letters, digits, spaces & '_' '-' '.' allowed. Letter should be first" } | |
| 70 | 70 | validates :path, presence: true, length: { within: 0..255 }, |
| 71 | 71 | format: { with: Gitlab::Regex.path_regex, |
| 72 | 72 | message: "only letters, digits & '_' '-' '.' allowed. Letter should be first" } | ... | ... |