Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion extension/js/common/core/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,12 @@ export class Str {
};
private static formatEmailWithOptionalNameEx = ({ email, name }: EmailParts, forceBrackets?: boolean): string => {
if (name) {
return `${Str.rmSpecialCharsKeepUtf(name, 'ALLOW-SOME')} <${email}>`;
/*
* hotfix for issue https://github.com/FlowCrypt/enterprise-server/issues/6264
* this replaces accented characters with their unaccented counterparts
*/
const normalizedName = name.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
return `${Str.rmSpecialCharsKeepUtf(normalizedName, 'ALLOW-SOME')} <${email}>`;
}
return forceBrackets ? `<${email}>` : email;
};
Expand Down
Loading