Skip to content

Commit

Permalink
solved the linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
moheladwy committed Jan 13, 2025
1 parent d7f37db commit 461ece8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/components/register-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
import { Input } from "@/components/ui/input"
import { toast } from "@/hooks/use-toast"
import { useState } from "react"
import { LoadingButton } from "./loading"

const registerSchema = z.object({
email: z.string()
Expand All @@ -36,7 +35,7 @@ const registerSchema = z.object({
.min(12, "Password must be at least 12 characters")
.max(100, "Password must not exceed 100 characters")
.regex(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=[\]{};':\"\\|,.<>\/?]).{12,100}$/,
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]).{12,100}$/,
"Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character"
),
confirmPassword: z.string()
Expand Down

0 comments on commit 461ece8

Please sign in to comment.