public/js/user/app.js
/**
   * this function is for checking if the user input is using 
   * email format or not 
   */
this function is for checking if the user input is using
email format or not
this function is for checking if the user input is using email format or not
function isEmail(email){
    let filter = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if(filter.test(email)){
      return true;
    }else{
      return false;
    }
  }
function isEmail ( email ) { let filter = / ^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$ / ; if ( filter . test ( email ) ) { return true ; } else { return false ; } }
this function is for checking if the user input is using
 email format or not
this function is for checking if the user input is using email format or not