public/js/user/app.js
/**
   * this function is for checking if the user input for username
   * have space or special character in them.
   */
this function is for checking if the user input for username
have space or special character in them.
this function is for checking if the user input for username have space or special character in them .
function hasSpaceOrSpecialCharacter(username){
    let filter = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
    if(filter.test(username)){
      return true;
    }else{
      return false;
    }
  }
function hasSpaceOrSpecialCharacter ( username ) { let filter = / [ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?] / ; if ( filter . test ( username ) ) { return true ; } else { return false ; } }
this function is for checking if the user input for username
 have space or special character in them.
this function is for checking if the user input for username have space or special character in them .