fix emoji processor not leaving string as-is if no emoji are found

This commit is contained in:
Henry Jameson 2021-06-07 12:38:27 +03:00
parent 35dedf8416
commit be79643bcf
2 changed files with 29 additions and 1 deletions

View file

@ -118,6 +118,7 @@ export const processTextForEmoji = (text, emojis, processor) => {
textBuffer += char
}
}
if (textBuffer) buffer.push(textBuffer)
return buffer
}