Closed landure closed 9 months ago
I'm using Vale to validate Hugo markdown files.
Microsoft.RangeFormat and Ranges rules raise an error on ISO formatted dates in the front matter.
For "2022-04-16T11:21:30.148Z", theses rules find a issue with '2022-04'.
A solution is to add exceptions for ISO dates formats 'YYYY-mm' and 'YYYY-mm-dd'
exceptions: - '\b\d{4}[-]\d{2}\b' - '\b\d{4}[-]\d{2}-\d{2}\b'
I'm using Vale to validate Hugo markdown files.
Microsoft.RangeFormat and Ranges rules raise an error on ISO formatted dates in the front matter.
For "2022-04-16T11:21:30.148Z", theses rules find a issue with '2022-04'.
A solution is to add exceptions for ISO dates formats 'YYYY-mm' and 'YYYY-mm-dd'