(s: string)
| 90 | } |
| 91 | |
| 92 | function isValidIsoDate(s: string): boolean { |
| 93 | if (!/^\d{4}-\d{2}-\d{2}$/.test(s)) return false |
| 94 | const t = Date.parse(`${s}T00:00:00Z`) |
| 95 | return Number.isFinite(t) |
| 96 | } |
| 97 | |
| 98 | function normalizeDueDate(raw: string | undefined): string | undefined { |
| 99 | if (!raw) return undefined |
no outgoing calls
no test coverage detected