This commit is contained in:
Nadar
2026-03-17 13:24:22 +03:00
commit 82e5ac9d81
554 changed files with 29637 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export default function hideEmail(email: string) {
const atIndex = email.indexOf('@')
const username = email.substring(0, atIndex)
const domain = email.substring(atIndex + 1)
const hiddenUsername = `${username.substring(0, 2)}**`
return `${hiddenUsername}@${domain}`
}