Skip to content
Snippets Groups Projects
Commit 122f7caf authored by Pan's avatar Pan
Browse files

Merge branch 'refacor/style' of https://github.com/PanJiaChen/vue-element-admin into refacor/style

parents 6d1059f6 1d4f1218
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment