Review Section 5.1.1. Dates by colincasey · Pull Request #547 · salesforce/tough-cookie (original) (raw)

@colincasey

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

Adds tests for date parsing edge cases and boundaries:

Closes #511

@colincasey self-assigned this

Nov 6, 2025

@colincasey

Also disabled no-control-regex rule since control characters are used throughout the spec.

@colincasey

@awaterma

@colincasey

colincasey added a commit that referenced this pull request

Mar 13, 2026

@colincasey

Reorganize the flat it.each in domainMatch.spec.ts into grouped describe blocks for better readability and alignment with RFC 6265 Section 5.1.3 structure:

No test cases added or removed — purely structural reorganization. This follows the pattern established in PR #547 for date tests.

Part of #513

colincasey added a commit that referenced this pull request

Apr 23, 2026

@colincasey

Reorganize the flat it.each in domainMatch.spec.ts into grouped describe blocks for better readability and alignment with RFC 6265 Section 5.1.3 structure:

No test cases added or removed — purely structural reorganization. This follows the pattern established in PR #547 for date tests.

Part of #513

Add tests for empty string inputs, localhost identity match, dot-only inputs, and canonicalize=false parameter behavior.

Note: ('..', '.') returns true because canonicalization strips the leading dot from '..' leaving '.', which matches identity.

Update JSDoc and inline comments to reference specific sections of draft-ietf-httpbis-rfc6265bis-22, note rfc6265bis compatibility in the remarks block, and clearly label library-specific behavior that goes beyond the RFC algorithm. No behavioral changes.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})