Skip to content

Commit

Permalink
Drop unrequired/in-error double escape for Slack link
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetikonline committed Jul 31, 2024
1 parent a32f3fe commit f336a5a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ function buildSlackPayload(channel,data) {
return text.replaceAll('>','>');
}

url = url.replaceAll('<','&lt;');
return `<${escape(url)}|${escape(title)}>`;
}

Expand Down

0 comments on commit f336a5a

Please sign in to comment.