module Middleman::Util

def normalize_path(path)

Returns:
  • (String) -

Parameters:
  • path (String) --
def normalize_path(path)
  # The tr call works around a bug in Ruby's Unicode handling
  path.sub(%r{^/}, '').tr('', '')
end