Skip to content

Commit 204b7df

Browse files
Kiliandecavlapo
authored andcommitted
fix: add default message for isMilitaryTime validator (#411)
Close #287
1 parent 25d3329 commit 204b7df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/validation/ValidationTypes.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ export class ValidationTypes {
261261
return eachPrefix + "$property must be shorter than or equal to $constraint1 characters";
262262
case this.MATCHES:
263263
return eachPrefix + "$property must match $constraint1 regular expression";
264-
264+
case this.IS_MILITARY_TIME:
265+
return eachPrefix + "$property must be a valid representation of military time in the format HH:MM";
266+
265267
/* array checkers */
266268
case this.ARRAY_CONTAINS:
267269
return eachPrefix + "$property must contain $constraint1 values";

0 commit comments

Comments
 (0)