mobilizon.chapril.org-mobil.../js/src/utils/validators.ts

8 lines
193 B
TypeScript
Raw Normal View History

2019-01-11 14:07:14 +01:00
export function validateEmailField(value: string) {
2019-01-11 13:58:29 +01:00
return value.includes('@') || 'Invalid e-mail.';
}
export function validateRequiredField(value: any) {
return !!value || 'Required.';
}