export function validateEmail ( value ) { const regex = /^[\w!#$%&'*+/=?`{|}~^-]+(?:\.[\w!#$%&'*+/=?`{|}~^-]+)*@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}$/i ; const email = value ; if ( regex . test ( email ) ) { return Boolean ( email ) ; } return false ; }