lib/gollum-lib/helpers.rb in gollum-lib-2.0.0 vs lib/gollum-lib/helpers.rb in gollum-lib-3.0.0
- old
+ new
@@ -2,11 +2,11 @@
module Gollum
module Helpers
def trim_leading_slash url
return url if url.nil?
- url.gsub!('%2F','/')
- return '/' + url.gsub(/^\/+/,'') if url[0,1] == '/'
+ url.gsub!('%2F', '/')
+ return '/' + url.gsub(/^\/+/, '') if url[0, 1] == '/'
url
end
end
end