diff --git a/lib/gollum/helpers.rb b/lib/gollum/helpers.rb index 69d60f6a..1354f862 100644 --- a/lib/gollum/helpers.rb +++ b/lib/gollum/helpers.rb @@ -28,7 +28,7 @@ module Precious # Ensure path begins with a single leading slash def clean_path(path) if path - (path[0] != '/' ? path.insert(0, '/') : path).gsub('//','/') + (path[0] != '/' ? path.insert(0, '/') : path).gsub(/\/{2,}/,'/') end end