Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

235 B
Raw Blame
export const MIN_PASSWORD_CHARS = 8
export const MAX_PASSWORD_CHARS = 72

export const isValidEmail = (text: string) => text.match(/^\S+@\S+\.\S+$/)

export const isValidPassword = (text: string) =>
  text.length >= MIN_PASSWORD_CHARS