feat: forget password steps and pages added
This commit is contained in:
1
src/utils/regexes/containsNumber.tsx
Normal file
1
src/utils/regexes/containsNumber.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export const containsNumber = (value: string) => /\d/.test(value);
|
||||
1
src/utils/regexes/containsSymbol.tsx
Normal file
1
src/utils/regexes/containsSymbol.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export const containsSymbol = (value: string) => /[!@#$%&*\^]/.test(value);
|
||||
5
src/utils/regexes/hasUpperAndLowerLetter.tsx
Normal file
5
src/utils/regexes/hasUpperAndLowerLetter.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
export const hasUpperAndLowerLetter = (value: string) => {
|
||||
const hasUpper = /[A-Z]/.test(value);
|
||||
const hasLower = /[a-z]/.test(value);
|
||||
return hasUpper && hasLower;
|
||||
};
|
||||
1
src/utils/regexes/least8Chars.tsx
Normal file
1
src/utils/regexes/least8Chars.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export const least8Chars = (value: string) => value.length >= 8;
|
||||
Reference in New Issue
Block a user