Revert "fix(avatar): add ZWNJ between initials of letter avatars"

This reverts commit 6085220bfc.
This commit is contained in:
Дамян Минков 2022-04-11 10:57:26 -05:00
parent c633929c58
commit fcc8e98aad
1 changed files with 1 additions and 3 deletions

View File

@ -68,9 +68,7 @@ export function getInitials(s: ?string) {
const initialsBasis = _.split(s, '@')[0];
const [ firstWord, secondWord ] = initialsBasis.split(wordSplitRegex).filter(Boolean);
// Add ZWNJ to separate the initials in languages like Arabic or Persian.
return `${getFirstGraphemeUpper(firstWord)}\u200c${getFirstGraphemeUpper(secondWord)}`;
return getFirstGraphemeUpper(firstWord) + getFirstGraphemeUpper(secondWord);
}
/**