includes/clientside/static/misc.js
changeset 238 f948557af068
parent 224 db8d5111ad20
child 254 f49e3c8b638c
equal deleted inserted replaced
237:4ab30e8dd168 238:f948557af068
   632  * @return bool
   632  * @return bool
   633  */
   633  */
   634 
   634 
   635 function validateEmail(email)
   635 function validateEmail(email)
   636 {
   636 {
   637   return ( email.match(/^(?:[\w\d]+\.?)+@((?:(?:[\w\d]\-?)+\.)+\w{2,4}|localhost)$/) ) ? true : false;
   637   return ( email.match(/^(?:[\w\d_-]+\.?)+@((?:(?:[\w\d_-]\-?)+\.)+\w{2,4}|localhost)$/) ) ? true : false;
   638 }
   638 }
   639 
   639