summaryrefslogtreecommitdiff
path: root/lib/gitlab/regex.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-28 09:29:57 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-28 09:29:57 +0200
commit1f3bdd453e8dfb81b97166ede481685d85ea04c6 (patch)
tree59c7d46d78ac9be8b8e502954f30e1c585ac1eaf /lib/gitlab/regex.rb
parent3de4271846496fae3b16c316252816dca3f3c354 (diff)
downloadgitlab-ce-1f3bdd453e8dfb81b97166ede481685d85ea04c6.tar.gz
Allow spaces in project name
Diffstat (limited to 'lib/gitlab/regex.rb')
-rw-r--r--lib/gitlab/regex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb
index e0fb47da17b..483042205ea 100644
--- a/lib/gitlab/regex.rb
+++ b/lib/gitlab/regex.rb
@@ -7,7 +7,7 @@ module Gitlab
end
def project_name_regex
- default_regex
+ /\A[a-zA-Z][a-zA-Z0-9_\-\. ]*\z/
end
def path_regex