From 43e4a38132c78cbe2693a7702a6f869f98c8ee64 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau <302891+christophehurpeau@users.noreply.github.com> Date: Thu, 11 Apr 2024 08:17:20 +0200 Subject: [PATCH] Update slackify.js (#45) --- src/slackify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slackify.js b/src/slackify.js index 6e50c5b..52b2560 100644 --- a/src/slackify.js +++ b/src/slackify.js @@ -8,7 +8,7 @@ const zeroWidthSpace = String.fromCharCode(0x200B); const escapeSpecials = text => { const escaped = text - .replace('&', '&') + .replace(/&/g, '&') .replace(/<([^@]|$)/g, (_, m) => `<${m}`) .replace(/^(.*)>/g, (_, m) => { const isEndOfUserMention = Boolean(m.match(/<@[A-Z0-9]+$/));