@@ -2,7 +2,7 @@ import { ValidateFunctions } from "./types";
22
33const defaultErrorMsg : string [ ] = [
44 "This password is too long" ,
5- "password too short" ,
5+ "Password too short" ,
66 "Password requires at least one capital letter" ,
77 "Password requires at least one special character" ,
88 "Password requires at least one number" ,
@@ -60,7 +60,7 @@ const defaultOptionsParams: OptionsParams = {
6060 * Default:
6161 * [
6262 '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
6464 'Requires at least one capital letter',
6565 'Requires at least one special character',
6666 'Requires at least one number',
@@ -202,7 +202,7 @@ function getErrorMessage(
202202 : defaultErrorMsg [ index ] ;
203203 if (
204204 errorMessage === "This password is too long" ||
205- errorMessage === "password too short"
205+ errorMessage === "Password too short"
206206 ) {
207207 if ( maxLenthPassword === Infinity ) {
208208 return `Password must be greater than ${ minLenthPassword . toString ( ) } characters` ;
0 commit comments