"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#Validation
// eslint-disable-next-line max-len
var emailPattern = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;

var isValidEmail = exports.isValidEmail = function isValidEmail(email) {
  return emailPattern.test(email);
};

var isValidPassword = exports.isValidPassword = function isValidPassword(password) {
  return password && password.length >= 8 && password.length <= 24;
};