remove literal OR operator

This commit is contained in:
Sam Thomson 2018-12-05 05:18:27 +07:00
parent acdee32ab1
commit d86fd5f7f0
1 changed files with 1 additions and 1 deletions

View File

@ -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(<Emoji emoji={match[0]} size={16} />);
}