remove : from email from name (#14594)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
4daf9db9db
commit
4b12d021e4
1 file changed
+2
-2
@@ -10,7 +10,7 @@ export const sanitizeDisplayName = (nameAndEmail: string) => {
|
||||
};
|
||||
|
||||
const sanitize = (name: string) => {
|
||||
const charsToReplace = /[;,"<>()]/g;
|
||||
const charsToReplace = /[;,"<>():]/g;
|
||||
|
||||
return name.replace(charsToReplace, " ");
|
||||
return name.replace(charsToReplace, " ").replace(/\s+/g, " ");
|
||||
};
|
||||
Reference in new issue
Block a user