UNPKG

@samchon/openapi

Version:

OpenAPI definitions and converters for 'typia' and 'nestia'.

7 lines (6 loc) 315 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._isFormatTime = void 0; const _isFormatTime = (str) => PATTERN.test(str); exports._isFormatTime = _isFormatTime; const PATTERN = /^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i;