Emoji parser gives up after encountering invalid emoji code


(Steven J, WTDWTF) #1

When displaying emoji, the parser gives up if it encounters an invalid emoji code, and fails to parse the rest of the emoji until it encounters a space

Example:
:smile::stuck_out_tongue_winking_eye::stuckouttongue::smile::stuck_out_tongue_winking_eye:
Expected:
:smile::stuck_out_tongue_winking_eye::stuckouttongue: :smile::stuck_out_tongue_winking_eye:
(without a space)
Source:
:smile::stuck_out_tongue_winking_eye::stuckouttongue::smile::stuck_out_tongue_winking_eye:

It also fails if it encounters a single colon.

::smile:
::smile:


(Jeff Atwood) #2

Legit, but if there is a priority below β€œextremely low”, this would be that :wink:


(Steven J, WTDWTF) #3

Figured.


(Mittineague) #4

This is kind of a β€œdon’t do that” thing isn’t it :question:

All works fine using the editor’s emoji button. i.e. it adds the space before the inserted emoji code.

:sagittarius: :capricorn: :aquarius:

:sagittarius: :capricorn: :aquarius:


(Steven J, WTDWTF) #5

Pretty much.

(This was encountered on one of the TDWTF β€œThe [x] Ideas Thread is :arrow_up::arrow_down::leftwards_arrow_with_hook::fire:” lines, so the total use case for something like this is probably limited to one forum. Still it is a bug :stuck_out_tongue: )


(RΓ©gis Hanol) #6

This issue has recently been fixed :wink: