IdentityModel extends EmailModel

This commit is contained in:
the-djmaze 2024-10-23 00:56:42 +02:00
parent b01072e2e3
commit f0b3d798bc
6 changed files with 27 additions and 21 deletions

View file

@ -73,4 +73,9 @@ export class EmailModel extends AbstractModel {
}
return result || name;
}
get domain() {
return this.email.replace(/^.+@([^@]+)$/, '$1');
// return this.email.slice(this.email.lastIndexOf('@'))
}
}