diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-13 15:52:07 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-13 15:52:07 +0300 |
commit | 3092e7f86a32bc6e6378ca499aeab8b3fec156e8 (patch) | |
tree | d9ae03f563265157bd026b2aca635ceb13ed8aad | |
parent | c543cd1ed384b7b4f4f45e70e9e028a5db822671 (diff) | |
parent | 9e848bcd5aa26084174f3efb2a2808836e003cf9 (diff) |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
-rw-r--r-- | app/models/namespace.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index dd74165f887..a0d79d7e5c0 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -61,8 +61,8 @@ class Namespace < ActiveRecord::Base def clean_path(path) path.gsub!(/@.*\z/, "") path.gsub!(/\.git\z/, "") - path.gsub!(/\A-/, "") - path.gsub!(/.\z/, "") + path.gsub!(/\A-+/, "") + path.gsub!(/\.+\z/, "") path.gsub!(/[^a-zA-Z0-9_\-\.]/, "") counter = 0 |