utils/validation.js
function(u){
      var urlObj = url.parse(u)
      return urlObj.protocol + "//" + urlObj.hostname + urlObj.pathname 
    }
function(u){
      var urlObj = url.parse(u)
      return urlObj.protocol + "//" + urlObj.hostname + urlObj.pathname 
    }
function ( u ) { var urlObj = url . parse ( u ) return urlObj . protocol + "//" + urlObj . hostname + urlObj . pathname }
Build path from urlObj after parsing
Build path from urlObj after parsing