Skip to content

Commit 4678db8

Browse files
authored
chore: Replace quotes when sanitizing title (#717)
- Before sending notification to Slack, replace any quotes that exist in Github entity title
1 parent 178671a commit 4678db8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/notifications.yml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
// Escape special characters for Slack
4040
const escapeForSlack = (text) => {
4141
return text
42+
.replace(/"/g, '"')
4243
.replace(/&/g, '&')
4344
.replace(/</g, '&lt;')
4445
.replace(/[@]/g, '\\@')

0 commit comments

Comments
 (0)