fix:remove semi

This commit is contained in:
Pan 2017-11-16 17:26:34 +08:00
parent 122f7cafa6
commit 1511fe3778
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export function validatAlphabets(str) {
* @returns {boolean} * @returns {boolean}
*/ */
export function validateEmail(email) { export function validateEmail(email) {
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
return re.test(email); return re.test(email)
} }