Make Claude Code footer stripping more robust #25

Merged
probablycorey merged 1 commits from probablycorey/fix-claude-footer-strip into main 2026-03-11 21:06:51 +00:00

Improved the regex pattern used to strip the Claude Code footer from PR bodies to handle more formatting variations. The pattern now matches the robot emoji followed by "Claude Code" anywhere on the last line, catching cases like plain text "Claude Code" without square brackets.

Extracted the regex into a named variable with a clarifying comment to make the intent more obvious.

Improved the regex pattern used to strip the Claude Code footer from PR bodies to handle more formatting variations. The pattern now matches the robot emoji followed by "Claude Code" anywhere on the last line, catching cases like plain text "Claude Code" without square brackets. Extracted the regex into a named variable with a clarifying comment to make the intent more obvious.
probablycorey added 1 commit 2026-03-11 20:18:36 +00:00
Make Claude Code footer stripping more robust
Some checks failed
CI / test (pull_request) Has been cancelled
c22c5c423c
Updated the regex to match the robot emoji followed by "Claude Code" on the last line, regardless of formatting. Also pulled the regex into a named variable with a comment to clarify intent. This catches variations like "Generated with Claude Code" without square brackets.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
probablycorey merged commit dbd94e7b37 into main 2026-03-11 21:06:51 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: probablycorey/workshop#25
No description provided.