remove literal OR operator
This commit is contained in:
parent
acdee32ab1
commit
d86fd5f7f0
|
@ -58,7 +58,7 @@ function displayImage(text) {
|
||||||
const MessageRender = ({ message }) => {
|
const MessageRender = ({ message }) => {
|
||||||
const emojis = [];
|
const emojis = [];
|
||||||
let match;
|
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) {
|
while ((match = regex1.exec(message)) !== null) {
|
||||||
emojis.push(<Emoji emoji={match[0]} size={16} />);
|
emojis.push(<Emoji emoji={match[0]} size={16} />);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue