debianize-mobilizon/js/src/utils/validators.ts

8 lines
188 B
TypeScript
Raw Normal View History

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