Commit 9e848bcd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #9104 from jdsn/fix-issue9098-clean_path

Fix issue9098 clean path
parents 9c14ed06 d03cec0e
...@@ -61,8 +61,8 @@ class Namespace < ActiveRecord::Base ...@@ -61,8 +61,8 @@ class Namespace < ActiveRecord::Base
def clean_path(path) def clean_path(path)
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