changeset 299 | ce2873735506 |
parent 295 | f948557af068 |
child 304 | e2cb5f1432c8 |
child 315 | f49e3c8b638c |
298:39c132e69781 | 299:ce2873735506 |
---|---|
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 |