The date
format can lead to invalid dates generation
#154
Labels
date
format can lead to invalid dates generation
#154
The regex we currently use can lead to invalid dates, such as
2022-02-31
. This StackOverflow post gives a regex that takes leap years into account. Not sure we want to do this as the compilation time would increase, and may want to rely on the LLM instead. At the very least we should add a comment in the code.Note that RF3339 is quite ambiguous about it.
The text was updated successfully, but these errors were encountered: