lib/url.js
function clean(src) {
  let pidx = src.indexOf('http')
  if(pidx > 0) src = src.substr(pidx)
  return src ? pidx >= 0 || src.indexOf('//') >= 0 ? src : '/' + src : ''
}
function clean(src) {
  let pidx = src.indexOf('http')
  if(pidx > 0) src = src.substr(pidx)
  return src ? pidx >= 0 || src.indexOf('//') >= 0 ? src : '/' + src : ''
}
function clean ( src ) { let pidx = src . indexOf ( 'http' ) if ( pidx > 0 ) src = src . substr ( pidx ) return src ? pidx >= 0 || src . indexOf ( '//' ) >= 0 ? src : '/' + src : '' }
cleans url to be properly formatted
cleans url to be properly formatted