mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Cleanup Email.toLine()
This commit is contained in:
parent
2af5257e10
commit
7585ac450e
3 changed files with 4 additions and 4 deletions
|
|
@ -148,7 +148,7 @@ export class EmailAddressesComponent {
|
|||
hook = (v && [',', ';', '\n'].includes(v.slice(-1))) ? EmailModel.splitEmailLine(val) : null,
|
||||
values = (hook || [val]).map(value => EmailModel.parseEmailLine(value))
|
||||
.flat(Infinity)
|
||||
.map(item => (item.toLine ? [item.toLine(false), item] : [item, null]));
|
||||
.map(item => (item.toLine ? [item.toLine(), item] : [item, null]));
|
||||
|
||||
if (values.length) {
|
||||
values.forEach(a => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue