MCPcopy Create free account
hub / github.com/codeaashu/claude-code / looksLikeISO8601

Function looksLikeISO8601

src/utils/mcp/dateTimeParser.ts:117–121  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

115 * Used to decide whether to attempt NL parsing.
116 */
117export function looksLikeISO8601(input: string): boolean {
118 // ISO 8601 date: YYYY-MM-DD
119 // ISO 8601 datetime: YYYY-MM-DDTHH:MM:SS...
120 return /^\d{4}-\d{2}-\d{2}(T|$)/.test(input.trim())
121}
122

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected