Revert "fix(avatar): add ZWNJ between initials of letter avatars"
This reverts commit 6085220bfc
.
This commit is contained in:
parent
c633929c58
commit
fcc8e98aad
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue