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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexcheuk
Copy link

@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.

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.

None yet

1 participant