mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 09:05:13 +08:00
7 lines
262 B
JavaScript
7 lines
262 B
JavaScript
export default {
|
|
email: email => (/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(email)),
|
|
password: pass => (/^(?=.{8,}).*$/.test(pass)),
|
|
confirmPassword: () => true,
|
|
displayName: displayName => (/^(?=.{3,}).*$/.test(displayName))
|
|
};
|