clean_path should drop all trailing dots, not just one

This commit is contained in:
J. Daniel Schmidt 2015-04-08 15:50:38 +02:00
parent 2794e57beb
commit 706be56317
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class Namespace < ActiveRecord::Base
path.gsub!(/@.*\z/, "")
path.gsub!(/\.git\z/, "")
path.gsub!(/\A-/, "")
path.gsub!(/\.\z/, "")
path.gsub!(/\.+\z/, "")
path.gsub!(/[^a-zA-Z0-9_\-\.]/, "")
counter = 0