Merge pull request #893 from coralproject/email-regex-fix

Changed email verification regex
This commit is contained in:
Kim Gardner
2017-08-29 16:24:17 +01:00
committed by GitHub
+1 -1
View File
@@ -1,5 +1,5 @@
export default {
email: (email) => (/^([A-Za-z0-9_\-\.\+])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(email)),
email: (email) => (/^.+@.+\..+$/.test(email)),
password: (pass) => (/^(?=.{8,}).*$/.test(pass)),
confirmPassword: () => true,
username: (username) => (/^[a-zA-Z0-9_]+$/.test(username)),