(input: string)
| 115 | * Used to decide whether to attempt NL parsing. |
| 116 | */ |
| 117 | export 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 |
no outgoing calls
no test coverage detected