Skip to content

Conversation

@colincasey
Copy link
Contributor

Updates parseDate.ts with improved comments and clarifications regarding the RFC6265 compliance.

Adds tests for date parsing edge cases and boundaries:

  • Year boundaries (e.g., 1600, 9999, 10000)
  • Day-of-month limits (e.g., 0, 32)
  • Time component boundaries (e.g., 24:00:00, 23:60:00)
  • Month edge cases (e.g., single character months, invalid abbreviations)
  • Invalid date combinations as per RFC6265
  • Handling of duplicate tokens and consecutive delimiters

Closes #511

Updates `parseDate.ts` with improved comments and clarifications regarding the RFC6265 compliance.

Adds tests for date parsing edge cases and boundaries:

- Year boundaries (e.g., 1600, 9999, 10000)
- Day-of-month limits (e.g., 0, 32)
- Time component boundaries (e.g., 24:00:00, 23:60:00)
- Month edge cases (e.g., single character months, invalid abbreviations)
- Invalid date combinations as per RFC6265
- Handling of duplicate tokens and consecutive delimiters

Closes #511
@colincasey colincasey self-assigned this Nov 6, 2025
colincasey and others added 3 commits November 13, 2025 18:03
Also disabled `no-control-regex` rule since control characters are used throughout the spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review Draft 20 - 5.1.1. Dates

3 participants