Validasi Nama Pengguna di JavaScript

function validateUserName(username){
  var usernameRegex = /^[a-zA-Z0-9]+$/;
  return usernameRegex.test(username);
}
Poor Porcupine