remove : from email from name (#14594)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
co-authored by
CarinaWolli
parent
4daf9db9db
commit
4b12d021e4
@@ -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