@@ -2,7 +2,7 @@ import { ValidateFunctions } from "./types";
2
2
3
3
const defaultErrorMsg : string [ ] = [
4
4
"This password is too long" ,
5
- "password too short" ,
5
+ "Password too short" ,
6
6
"Password requires at least one capital letter" ,
7
7
"Password requires at least one special character" ,
8
8
"Password requires at least one number" ,
@@ -60,7 +60,7 @@ const defaultOptionsParams: OptionsParams = {
60
60
* Default:
61
61
* [
62
62
'This password is too long',// Password must be between ${minLenthPassword} and ${maxLenthPassword} characters
63
- 'password too short',// Password must be between ${minLenthPassword} and ${maxLenthPassword} characters
63
+ 'Password too short',// Password must be between ${minLenthPassword} and ${maxLenthPassword} characters
64
64
'Requires at least one capital letter',
65
65
'Requires at least one special character',
66
66
'Requires at least one number',
@@ -202,7 +202,7 @@ function getErrorMessage(
202
202
: defaultErrorMsg [ index ] ;
203
203
if (
204
204
errorMessage === "This password is too long" ||
205
- errorMessage === "password too short"
205
+ errorMessage === "Password too short"
206
206
) {
207
207
if ( maxLenthPassword === Infinity ) {
208
208
return `Password must be greater than ${ minLenthPassword . toString ( ) } characters` ;
0 commit comments