cal.pub0.org/packages/trpc/server/routers/viewer/teams/util.ts

2 lines
80 B
TypeScript

export const isEmail = (str: string) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(str);