Skip to content

fix(core): parse Tuesday and Thursday as weekdays - #23247

Merged
TonyRL merged 1 commit into
DIYgod:masterfrom
ryanchou1994:fix/relative-date-weekdays
Sep 8, 2026
Merged

fix(core): parse Tuesday and Thursday as weekdays#23247
TonyRL merged 1 commit into
DIYgod:masterfrom
ryanchou1994:fix/relative-date-weekdays

Conversation

@ryanchou1994

Copy link
Copy Markdown
Contributor

Involved Issue / 该 PR 相关 Issue

Example for the Proposed Route(s) / 路由地址示例

NOROUTE

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
    • Follows Script Standard / 跟随路由规范
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

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 t shorthand when another English letter follows. Full tomorrow and shorthand inputs such as t3pm retain 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.

Copilot AI lite review requested due to automatic review settings September 8, 2026 16:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Mixed activity

Activity patterns show a mix of organic and automated signals.

View full analysis →

Evidence
  • Fork spike detected: Burst of 10 fork events in a single 24-hour window

This is an automated analysis by AgentScan

@github-actions github-actions Bot added the spam Low quality PR label Sep 8, 2026
@github-actions github-actions Bot closed this Sep 8, 2026
@TonyRL TonyRL reopened this Sep 8, 2026
@TonyRL
TonyRL merged commit ea01f7c into DIYgod:master Sep 8, 2026
57 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants