mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 07:59:18 +08:00
8 lines
316 B
JavaScript
8 lines
316 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,
|
|
username: username => (/^[a-zA-Z0-9_]+$/.test(username)),
|
|
organizationName: org => (/^[a-zA-Z0-9_ ]+$/).test(org)
|
|
};
|