The emoji :t2: suggestions have stopped working

סיכום מבוסס בינה מלאכותית

The discussion addresses a bug where the :t2: skin tone emoji suggestions in the Discourse editor have stopped working. Richie reported that after typing :woman_artist:t and pressing Tab, no skin tone suggestions appear, though manually entering the tone works. The issue was confirmed across multiple browsers and devices. sam and j.jaffeux traced the problem to recent changes in how punctuation triggers autocomplete. sam fixed the issue by adjusting the regex, and Richie thanked the team for the quick resolution.

( further to: Emojis autocomplete issue with "emoji autocomplete min chars" > 0 )

I’ve noticed the :t2: skin tone suggestions stopped working a while ago, even on here on meta :+1:t2:

A single colon starts the suggestions fine:

Then I press Tab or click the suggestion I want.

I then type another colon to change the skin tone.

Put I get no prompts or suggestions now:

If I manually type in the skin tone it does actually display correctly.

Tried on Safari on an old 2011 MacBook, iPhone XR and an iPad. Also tried on Chrome browser.

5 לייקים

@j.jaffeux any ideas what happened here?

Confirmed this is not working everywhere including Firefox.

When you type: :woman_artist:t no autocomplete pops up, I vaguely recall we used to have one pop up in the past.

5 לייקים

There has been multiples fixes recently on how we handle punctuation in composer and what it triggers. Not sure who worked on this, but this is very likely related.

4 לייקים

That would have been :point_right: :point_left: :point_up::point_up_2: ME :crazy_face:

I went ahead and fiddled with the regex a bit more and I think it is a bit better now.

https://github.com/discourse/discourse/commit/a9c703c2301332919908f09ab851dba9ec63fb10

7 לייקים

/adds to his Bug Reporter badge collection :smiley:

Thanks for the speedy response and fix as always guys!

5 לייקים

Thanks, it was a great and clear bug report, made it very easy to isolate the issue :+1:t4:

3 לייקים