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 fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2));
121}
122
123function isValidTime(value: string): boolean {
124 return /^([01]\d|2[0-3]):[0-5]\d$/.test(value.trim());
125}
126
127function parseTimeArgs(parts: string[], fallbackLimit: number): { times: string[]; limit: number } | undefined {

Callers 1

parseTimeArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected