Strip CR from the MotionScore page list - #3
Merged
Merged
Conversation
A repository variable edited in the GitHub web UI is stored with CRLF endings, and the action trims each path with xargs, which does not treat \r as whitespace. Every line but the last therefore kept a trailing CR, which rode through the audit into the results comment and split the first table row in half where GitHub rendered it as a line break. Normalise in the workflow rather than fixing each variable, so a repo that sets MOTIONSCORE_PAGES through the UI cannot reintroduce it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
The first row of the MotionScore results table rendered broken on devilos/devilos.org#3 — the
/cell split across two rows with a stray backtick, while/privacyrendered fine.MOTIONSCORE_PAGESwas stored as/\r\n/privacy, because a web-UI edit saves CRLF. The action trims each path withxargs, which does not count\ras whitespace, so page 1 stayed/\r. That CR reached the results comment, where GitHub renders it as a line break inside the code span and splits the table row./privacywas the last line, had no CR, and rendered fine — which is exactly why only the first row broke.Fixed in the workflow rather than in the variable, so no repo can reintroduce it by editing
MOTIONSCORE_PAGESthrough the UI.Verified against the exact CRLF value:
/\r\n/privacy→/\n/privacy, and an unset variable still falls back to/.🤖 Generated with Claude Code