mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-07 14:16:01 +02:00
4 lines
155 B
TypeScript
4 lines
155 B
TypeScript
export const requiredString = (value: string) => !!value.trim();
|
|
|
|
export const validEmail = (value: string) =>
|
|
/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(value);
|