summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-12 13:03:38 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-12 13:03:38 -0800
commit04a908f6a5c4f8753f0965615d94798286ecc675 (patch)
treeeda6d24373300944e06e287b4317fb8cc45572a4 /app
parent37a0a25f60576e812d0df9853ab7585e1325b868 (diff)
parenta3b6a3ed3552cbbdc74971a1261c668d1365412f (diff)
downloadgitlab-ce-04a908f6a5c4f8753f0965615d94798286ecc675.tar.gz
Merge pull request #190 from mutewinter/dot_project_names
Allow dots in project names
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index a5361313911..d1eb2793fa3 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -25,8 +25,8 @@ class Project < ActiveRecord::Base
validates :path,
:uniqueness => true,
:presence => true,
- :format => { :with => /^[a-zA-Z0-9_\-]*$/,
- :message => "only letters, digits & '_' '-' allowed" },
+ :format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
+ :message => "only letters, digits & '_' '-' '.' allowed" },
:length => { :within => 0..255 }
validates :description,
@@ -35,8 +35,8 @@ class Project < ActiveRecord::Base
validates :code,
:presence => true,
:uniqueness => true,
- :format => { :with => /^[a-zA-Z0-9_\-]*$/,
- :message => "only letters, digits & '_' '-' allowed" },
+ :format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
+ :message => "only letters, digits & '_' '-' '.' allowed" },
:length => { :within => 3..255 }
validates :owner,