MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isValidTime

Function isValidTime

cy/cy.ts:122–124  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

120}
121
122function isValidTime(value: string): boolean {
123 return /^([01]\d|2[0-3]):[0-5]\d$/.test(value.trim());
124}
125
126function parseTimeArgs(parts: string[], fallbackLimit: number): { times: string[]; limit: number } | undefined {
127 const times: string[] = [];

Callers 1

parseTimeArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected