Files
Account/src/utils/regexes/hasUpperAndLowerLetter.ts
Koosha Lahouti f7207b8545 fix: merge errors
2025-08-16 11:21:30 +03:30

6 lines
173 B
TypeScript

export const hasUpperAndLowerLetter = (value: string) => {
const hasUpper = /[A-Z]/.test(value);
const hasLower = /[a-z]/.test(value);
return hasUpper && hasLower;
};