diff --git a/lib/validation/format.ts b/lib/validation/format.ts index 7b67ea6..6554902 100644 --- a/lib/validation/format.ts +++ b/lib/validation/format.ts @@ -18,8 +18,10 @@ const isValidIPV6 = const isValidHostname = /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/; const matchDate = /^(\d\d\d\d)-(\d\d)-(\d\d)$/; + // const matchTime = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i; -const matchTime = /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i; +const matchTime = + /^(?