Skip to content

parsedate: remove the unused leading three letters - #23013

Closed
bagder wants to merge 4 commits into
masterfrom
bagder/parsedate-weekdays
Closed

bagder wants to merge 4 commits into
masterfrom
bagder/parsedate-weekdays

Conversation

@bagder

@bagder bagder commented Sep 21, 2026

Copy link
Copy Markdown
Member

The three first letters of the weekdays are never actually used in the weekday array so drop them. Also make the array local.

The three first letters of the weekdays are never actually used in the
weekday array so drop them. Also make the array local.
@bagder bagder added the tidy-up label Sep 21, 2026
@bagder
bagder requested a balanced review from Copilot September 21, 2026 07:58
@bagder
bagder marked this pull request as ready for review September 21, 2026 07:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The comparison length rejects valid weekday tokens followed by delimiters.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Moves weekday suffix data into checkday() and removes redundant prefixes.

Changes:

  • Replaces full weekday names with suffixes.
  • Makes the lookup array function-local.
File Description
lib/​parsedate.c Refactors full weekday validation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/parsedate.c Outdated
@github-actions github-actions Bot added the tests label Sep 21, 2026
@bagder bagder closed this in d1317b5 Sep 21, 2026
@bagder
bagder deleted the bagder/parsedate-weekdays branch September 21, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants