Skip to content

Commit

Permalink
Merge pull request #2869 from ONLYOFFICE/fix/ar-initials
Browse files Browse the repository at this point in the history
Add space to initials in ar lang
  • Loading branch information
JuliaRadzhabova authored Feb 29, 2024
2 parents 9ee2f80 + b898dc0 commit c91102c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/common/main/lib/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,8 @@ Common.Utils.getUserInitials = function(username) {
var initials = fio[0].substring(0, 1).toUpperCase();
for (var i = fio.length-1; i>0; i--) {
if (fio[i][0]!=='(' && fio[i][0]!==')') {
if (/[\u0600-\u06FF]/.test(initials))
initials += '\u2009';
initials += fio[i].substring(0, 1).toUpperCase();
break;
}
Expand Down

0 comments on commit c91102c

Please sign in to comment.