Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add removal of carriage return during sanitization #411

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

alexcheuk
Copy link
Contributor

@alexcheuk alexcheuk commented May 25, 2023

Description

This pull request fixes the issue where variables used within a custom template contain CRLF-style new lines (ie \r\n).

A fix and test are added to test against this using a file with multiline content set to use CRLF for line endings.

A production use case for this issue is when one wants to send a Slack notification with a multiline commit message from GitHub. If the message was fetched using git show --pretty=format:%B --no-patch, the new lines uses \r\n.

@marboledacci marboledacci merged commit 7d91229 into CircleCI-Public:main Sep 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants