clean_path should drop all leading dashes, not just one
This commit is contained in:
parent
706be56317
commit
d03cec0e69
|
@ -61,7 +61,7 @@ class Namespace < ActiveRecord::Base
|
|||
def clean_path(path)
|
||||
path.gsub!(/@.*\z/, "")
|
||||
path.gsub!(/\.git\z/, "")
|
||||
path.gsub!(/\A-/, "")
|
||||
path.gsub!(/\A-+/, "")
|
||||
path.gsub!(/\.+\z/, "")
|
||||
path.gsub!(/[^a-zA-Z0-9_\-\.]/, "")
|
||||
|
||||
|
|
Loading…
Reference in New Issue