mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 20:01:19 +08:00
Merge pull request #893 from coralproject/email-regex-fix
Changed email verification regex
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user