Fix emoji rendering in projects dropdown identicon

Summary

Projects whose name starts with an emoji get their identicon wrongly rendered in project dropdown and groups page.

Steps to reproduce

Create a project, and use an emoji as the first character of the name.

Example Project

https://gitlab.com/ykweyer-test-group/emoji-test

What is the current bug behavior?

A faulty character gets outputed in project dropdown and in group list.

What is the expected correct behavior?

The emoji should be correctly displayed, as it already is in other identicons (as Project summary, starred projects, …).

Relevant logs and/or screenshots

Bug screenshots

Group details Project dropdown
image image

Working example

image

Output of checks

This bug happens on GitLab.com

Edited Feb 06, 2019 by Yann Weyer
Assignee Loading
Time tracking Loading