retextjs / retext-emoji

plugin to support emoji, gemoji, and emoticons
https://retextjs.github.io/retext-emoji
MIT License
34 stars 3 forks source link

Not decoding when there is no space between encoded emojis #18

Closed chrisvltn closed 5 years ago

chrisvltn commented 6 years ago

It is like Issue #4, but with encoded emojis:

retext()
    .use(emoji, { convert: 'decode' })
    .processSync('Crying 😢 😢')
    .toString();

Results in Crying :cry: :cry:. Nice :+1:

But:

retext()
    .use(emoji, { convert: 'decode' })
    .processSync('Crying 😢😢')
    .toString();

Results in Crying 😢😢

wooorm commented 6 years ago

Results in I'm sad 😢😢

thanks for reporting!