Skip to content

Commit

Permalink
fix: add default message for isMilitaryTime validator (#411)
Browse files Browse the repository at this point in the history
Close #287
  • Loading branch information
Kiliandeca authored and vlapo committed Aug 24, 2019
1 parent 25d3329 commit 204b7df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/validation/ValidationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ export class ValidationTypes {
return eachPrefix + "$property must be shorter than or equal to $constraint1 characters";
case this.MATCHES:
return eachPrefix + "$property must match $constraint1 regular expression";

case this.IS_MILITARY_TIME:
return eachPrefix + "$property must be a valid representation of military time in the format HH:MM";

/* array checkers */
case this.ARRAY_CONTAINS:
return eachPrefix + "$property must contain $constraint1 values";
Expand Down

0 comments on commit 204b7df

Please sign in to comment.