mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
This commit is contained in:
parent
b4ffc36e89
commit
3ee3db8bf5
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue