mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-17 03:38:18 +00:00
This commit is contained in:
parent
b4ffc36e89
commit
3ee3db8bf5
@ -168,7 +168,8 @@ export const getNameFromEmail = (email: string) => {
|
||||
if (email?.match(validEmailRegEx)) {
|
||||
return email.split('@')[0];
|
||||
} 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