diff --git a/app/components/ChatBox.js b/app/components/ChatBox.js index b51d45c..685a214 100644 --- a/app/components/ChatBox.js +++ b/app/components/ChatBox.js @@ -58,7 +58,7 @@ function displayImage(text) { const MessageRender = ({ message }) => { const emojis = []; let match; - const regex1 = RegExp(/:[\-a-zA-Z_|+0-9]+:/g); + const regex1 = RegExp(/:[\-a-zA-Z_+0-9]+:/g); while ((match = regex1.exec(message)) !== null) { emojis.push(); }