Merge pull request #136 from sh1luo/fix-empty-email-bug

fix: empty email bug
This commit is contained in:
Yang Luo 2021-07-01 22:46:26 +08:00 committed by GitHub
commit 98e0c1aa85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,6 +437,7 @@ function maskString(s) {
}
export function maskEmail(email) {
if (email === "") return;
const tokens = email.split("@");
let username = tokens[0];
username = maskString(username);