forked from AkkomaGang/admin-fe
Merge branch 'refacor/style' of https://github.com/PanJiaChen/vue-element-admin into refacor/style
This commit is contained in:
commit
122f7cafa6
1 changed files with 10 additions and 0 deletions
|
@ -31,3 +31,13 @@ export function validatAlphabets(str) {
|
|||
return reg.test(str)
|
||||
}
|
||||
|
||||
/**
|
||||
* validate email
|
||||
* @param email
|
||||
* @returns {boolean}
|
||||
*/
|
||||
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,}))$/;
|
||||
return re.test(email);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue