mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 22:52:14 +08:00
9 lines
323 B
JavaScript
9 lines
323 B
JavaScript
export default {
|
|
email: email => /^.+@.+\..+$/.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),
|
|
organizationContactEmail: email => /^.+@.+\..+$/.test(email),
|
|
};
|