Skip to content

Commit

Permalink
fix comment PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Jun 7, 2024
1 parent cab5c17 commit 17b2a60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/auth/signup/components/usePasswordStrength.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const usePasswordStrength = (props: UsePasswordStrengthProps): UsePasswordStreng

useEffect(() => {
const hasCorrectLength = password.length >= 8;
const hasUppercase = (password.match(/[A-Z]/g) || []).length > 0;
const hasLowercase = (password.match(/[a-z]/g) || []).length > 0;
const hasNumber = (password.match(/[0-9]/g) || []).length > 0;
const hasUppercase = (password.match(/[A-Z]/g) ?? []).length > 0;
const hasLowercase = (password.match(/[a-z]/g) ?? []).length > 0;
const hasNumber = (password.match(/[0-9]/g) ?? []).length > 0;

const _validation = [hasUppercase, hasLowercase, hasNumber, hasCorrectLength];

Expand Down

0 comments on commit 17b2a60

Please sign in to comment.