fixed error code

This commit is contained in:
2023-05-08 19:28:01 +10:00
parent 4da8b32b1a
commit b4cf05ad44

View File

@@ -181,7 +181,7 @@ interface ValidationLengthObject extends ValidationLengthOptions {
const defaultValidationLengthOptions: ValidationLengthOptions = {
length: 1,
invalidMessage: (options: ValidationLengthOptions) => {
return `Required to be less than ${options.length + 1} characters.`;
return `Required to be ${options.length} characters.`;
},
};