Files
talk/client/coral-framework/helpers/validate.js
T
2018-01-11 20:00:34 -07:00

8 lines
259 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),
};