fix(core): parse Tuesday and Thursday as weekdays - #23247
Merged
Conversation
Contributor
Mixed activityActivity patterns show a mix of organic and automated signals. Evidence
This is an automated analysis by AgentScan |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Involved Issue / 该 PR 相关 Issue
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
Note / 说明
Tuesday and Thursday, including Tue and Thu, are currently parsed as tomorrow: the earlier tomorrow pattern consumes their leading
t. With the clock fixed to Monday, February 2, both return February 3 instead of January 27 and January 29.Restrict the bare
tshorthand when another English letter follows. Fulltomorrowand shorthand inputs such ast3pmretain their behavior. Add regression cases for weekday names, abbreviations, attached times, and tomorrow shorthand.Validation: six regression cases fail on the base and pass with the fix. The date/timezone suites pass all 27 tests on macOS (Node 24.19) and Linux (Node 24.20, UTC and Asia/Taipei). Type checking, focused lint and formatting checks pass on both systems. Tests use a fixed clock and make no source-site requests.