Bugfix: addressparser() didn't handle groups properly

This commit is contained in:
the-djmaze 2023-02-13 19:47:24 +01:00
parent ebf429215b
commit a696d6c0a1
4 changed files with 27 additions and 25 deletions

View file

@ -59,7 +59,7 @@ const
base64_encode = text => btoa(unescape(encodeURIComponent(text))).match(/.{1,76}/g).join('\r\n'),
getEmail = value => addressparser(value)[0]?.address || false,
getEmail = value => addressparser(value)[0]?.email || false,
/**
* @param {Array} aList