We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b58e7c commit b2e767dCopy full SHA for b2e767d
extension/js/common/core/common.ts
@@ -283,7 +283,12 @@ export class Str {
283
};
284
private static formatEmailWithOptionalNameEx = ({ email, name }: EmailParts, forceBrackets?: boolean): string => {
285
if (name) {
286
- return `${Str.rmSpecialCharsKeepUtf(name, 'ALLOW-SOME')} <${email}>`;
+ /*
287
+ * hotfix for issue https://github.com/FlowCrypt/enterprise-server/issues/6264
288
+ * this replaces accented characters with their unaccented counterparts
289
+ */
290
+ const normalizedName = name.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
291
+ return `${Str.rmSpecialCharsKeepUtf(normalizedName, 'ALLOW-SOME')} <${email}>`;
292
}
293
return forceBrackets ? `<${email}>` : email;
294
0 commit comments