param url returns export default function extractDomainFromUrl ( url ) { if ( ! url ) return url ; const matches = url . match ( /^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i ) ; return matches && matches [ 1 ] ; }