Method: Middleman::Util.normalize_path
- Defined in:
- lib/middleman-core/util/paths.rb
.normalize_path(path) ⇒ Object
35 36 37 38 |
# File 'lib/middleman-core/util/paths.rb', line 35 def normalize_path(path) # The tr call works around a bug in Ruby's Unicode handling Addressable::URI.unencode(path).sub(%r{^/}, '').tr('', '') end |