validated email
This commit was merged in pull request #284.
This commit is contained in:
@@ -11,6 +11,11 @@ import ReferralTable from "../MyWallet/WalletComponent/ReferralTable";
|
||||
const validationSchema = Yup.object().shape({
|
||||
ref_email: Yup.string()
|
||||
.email("Wrong email format")
|
||||
.matches(
|
||||
// /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/,
|
||||
/^[^0-9][a-zA-Z0-9._%+-]+@[a-zA-Z]+(\.[a-zA-Z]+)+$/,
|
||||
"Invalid email format"
|
||||
)
|
||||
.min(3, "Minimum 3 characters")
|
||||
.max(50, "Maximum 50 characters")
|
||||
.required("Email is required"),
|
||||
|
||||
Reference in New Issue
Block a user