Skip to content

Commit

Permalink
Update slackify.js (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau authored Apr 11, 2024
1 parent b45fa1a commit 43e4a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slackify.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const zeroWidthSpace = String.fromCharCode(0x200B);

const escapeSpecials = text => {
const escaped = text
.replace('&', '&')
.replace(/&/g, '&')
.replace(/<([^@]|$)/g, (_, m) => `&lt;${m}`)
.replace(/^(.*)>/g, (_, m) => {
const isEndOfUserMention = Boolean(m.match(/<@[A-Z0-9]+$/));
Expand Down

0 comments on commit 43e4a38

Please sign in to comment.