mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-18 20:30:48 +00:00
This commit is contained in:
parent
b4ffc36e89
commit
3ee3db8bf5
@ -168,7 +168,8 @@ export const getNameFromEmail = (email: string) => {
|
|||||||
if (email?.match(validEmailRegEx)) {
|
if (email?.match(validEmailRegEx)) {
|
||||||
return email.split('@')[0];
|
return email.split('@')[0];
|
||||||
} else {
|
} else {
|
||||||
return '';
|
// if the string does not conform to email format return the string
|
||||||
|
return email;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user