Skip to content

Commit b2e767d

Browse files
committed
add working hotfix
1 parent 9b58e7c commit b2e767d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

extension/js/common/core/common.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,12 @@ export class Str {
283283
};
284284
private static formatEmailWithOptionalNameEx = ({ email, name }: EmailParts, forceBrackets?: boolean): string => {
285285
if (name) {
286-
return `${Str.rmSpecialCharsKeepUtf(name, 'ALLOW-SOME')} <${email}>`;
286+
/*
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}>`;
287292
}
288293
return forceBrackets ? `<${email}>` : email;
289294
};

0 commit comments

Comments
 (0)