# File lib/escape.rb, line 115 115: def uri_path(str) 116: str.gsub(%r{[^/]+}n) { uri_segment($&) } 117: end