tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.26k stars 108 forks source link

Lint fails when date is before 1000AD #613

Open sorairolake opened 1 month ago

sorairolake commented 1 month ago

Lint fails (on taplo-cli) when date is before 1000AD as below:

date = 0781-04-30
datetime = 0645-06-12T12:00:00

Is this failure as expected? The valid years according to RFC 3339 are between 0000AD and 9999AD. So, I think these dates are valid.

$ taplo -V
taplo 0.9.1