Commit 706be563 authored by J. Daniel Schmidt's avatar J. Daniel Schmidt

clean_path should drop all trailing dots, not just one

parent 2794e57b
...@@ -62,7 +62,7 @@ class Namespace < ActiveRecord::Base ...@@ -62,7 +62,7 @@ class Namespace < ActiveRecord::Base
path.gsub!(/@.*\z/, "") path.gsub!(/@.*\z/, "")
path.gsub!(/\.git\z/, "") path.gsub!(/\.git\z/, "")
path.gsub!(/\A-/, "") path.gsub!(/\A-/, "")
path.gsub!(/\.\z/, "") path.gsub!(/\.+\z/, "")
path.gsub!(/[^a-zA-Z0-9_\-\.]/, "") path.gsub!(/[^a-zA-Z0-9_\-\.]/, "")
counter = 0 counter = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment