mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
8c611a8f49
[Settings] domain blocklist for email autocompletion GitOrigin-RevId: 62444f0f903ce3feae585c84c9f01164eac42a1f
61 lines
757 B
TypeScript
61 lines
757 B
TypeScript
const domainBlocklist = new Set(['overleaf.com'])
|
|
const commonTLDs = [
|
|
'br',
|
|
'cn',
|
|
'co',
|
|
'co.jp',
|
|
'co.uk',
|
|
'com',
|
|
'com.au',
|
|
'de',
|
|
'fr',
|
|
'in',
|
|
'info',
|
|
'io',
|
|
'net',
|
|
'no',
|
|
'ru',
|
|
'se',
|
|
'us',
|
|
'com.tw',
|
|
'com.br',
|
|
'pl',
|
|
'it',
|
|
'co.in',
|
|
'com.mx',
|
|
] as const
|
|
const commonDomains = [
|
|
'gmail',
|
|
'googlemail',
|
|
'icloud',
|
|
'me',
|
|
'yahoo',
|
|
'ymail',
|
|
'yahoomail',
|
|
'hotmail',
|
|
'live',
|
|
'msn',
|
|
'outlook',
|
|
'gmx',
|
|
'mail',
|
|
'aol',
|
|
'163',
|
|
'mac',
|
|
'qq',
|
|
'o2',
|
|
'libero',
|
|
'126',
|
|
'protonmail',
|
|
'yandex',
|
|
'yeah',
|
|
'web',
|
|
'foxmail',
|
|
] as const
|
|
|
|
for (const domain of commonDomains) {
|
|
for (const tld of commonTLDs) {
|
|
domainBlocklist.add(`${domain}.${tld}`)
|
|
}
|
|
}
|
|
|
|
export default domainBlocklist
|