(raw: string | undefined)
| 81 | } |
| 82 | |
| 83 | function normalizePriority(raw: string | undefined): TaskPriority | undefined { |
| 84 | if (!raw) return undefined |
| 85 | const v = raw.toLowerCase().trim() |
| 86 | if (v === 'high' || v === 'h') return 'high' |
| 87 | if (v === 'med' || v === 'medium' || v === 'm') return 'med' |
| 88 | if (v === 'low' || v === 'l') return 'low' |
| 89 | return undefined |
| 90 | } |
| 91 | |
| 92 | function isValidIsoDate(s: string): boolean { |
| 93 | if (!/^\d{4}-\d{2}-\d{2}$/.test(s)) return false |
no outgoing calls
no test coverage detected