chore: fix readme validate
This commit is contained in:
parent
e3bbc3ecf1
commit
d98018b39c
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ class IsInitialsExample extends Validator {
|
|||
|
||||
execute(value) {
|
||||
let hasFeedback = false;
|
||||
if (!IsString || !isInitialsRegex.test(value.toLowerCase())) {
|
||||
const isStringValidator = new IsString();
|
||||
if (!isStringValidator.execute(value) || !isInitialsRegex.test(value.toLowerCase())) {
|
||||
hasFeedback = true;
|
||||
}
|
||||
return hasFeedback;
|
||||
|
|
|
|||
Loading…
Reference in a new issue