mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 09:50:10 -06:00
5 lines
169 B
TypeScript
5 lines
169 B
TypeScript
export const isValidEmail = (email): boolean => {
|
|
const regex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
|
|
return regex.test(email);
|
|
};
|