code: function match (route) {
    assert.equal(typeof route, 'string')
  
    return route.trim()
      .replace(/[\?|#].*$/, '')
      .replace(/^(?:https?\:)\/\//, '')
      .replace(/^.*?(\/.*)/, '$1')
      .replace(/\/$/, '')
  }
docs: get url path section from a url strip querystrings / hashes strip protocol strip hostname and port (both ip and route) str -> str