changeset 125 | fb31c951d3a2 |
parent 85 | 7c68a18a27be |
child 133 | af0f6ec48de3 |
118:0c5efda996bf | 125:fb31c951d3a2 |
---|---|
582 window.console.warn(e); |
582 window.console.warn(e); |
583 } |
583 } |
584 } |
584 } |
585 } |
585 } |
586 |
586 |
587 /** |
|
588 * Validates an e-mail address. |
|
589 * @param string E-mail address |
|
590 * @return bool |
|
591 */ |
|
592 |
|
593 function validateEmail(email) |
|
594 { |
|
595 return ( email.match(/^(?:[\w\d]+\.?)+@((?:(?:[\w\d]\-?)+\.)+\w{2,4}|localhost)$/) ) ? true : false; |
|
596 } |
|
597 |