Google staff email
This commit is contained in:
parent
e2b27a8d2c
commit
02528473d6
@ -13,7 +13,12 @@ export function adjustEmail(email?: string): string | undefined {
|
|||||||
// TODO: check accounts with uncommon email domains
|
// TODO: check accounts with uncommon email domains
|
||||||
if (domain === "gmail.com" || domain === "googlemail.com") {
|
if (domain === "gmail.com" || domain === "googlemail.com") {
|
||||||
// replace .dots and +alternatives -> Gmail Dot Trick https://support.google.com/mail/answer/7436150 and https://generator.email/blog/gmail-generator
|
// replace .dots and +alternatives -> Gmail Dot Trick https://support.google.com/mail/answer/7436150 and https://generator.email/blog/gmail-generator
|
||||||
return user.replace(/[.]|(\+.*)/g, "") + "@gmail.com";
|
let v = user.replace(/[.]|(\+.*)/g, "") + "@gmail.com";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (domain === "google.com") {
|
||||||
|
// replace .dots and +alternatives -> Google Staff GMail Dot Trick
|
||||||
|
let v = user.replace(/[.]|(\+.*)/g, "") + "@google.com";
|
||||||
}
|
}
|
||||||
|
|
||||||
return email;
|
return email;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user