utils/validation.js
function(u){
      var urlObj = url.parse(u)
      return u.replace( urlObj.search, '').replace('#', '')
    }
function(u){
      var urlObj = url.parse(u)
      return u.replace( urlObj.search, '').replace('#', '')
    }
function ( u ) { var urlObj = url . parse ( u ) return u . replace ( urlObj . search , '' ) . replace ( '#' , '' ) }
Brute force way of removing querystring and hash
Brute force way of removing querystring and hash