According to the Regex validation inside Mimetext and RFC, a mailbox like LoremIpsum<test@mail.com> is valid.
This however caused a an exception before:
new Mailbox('LoremIpsum<test@mail.com>')
->
Cannot read properties of undefined (reading 'slice')
TypeError: Cannot read properties of undefined (reading 'slice')
at Mailbox.parse (/Users/larsfronius/git/MIMEText/build/Mailbox.js:36:29)
at new Mailbox (/Users/larsfronius/git/MIMEText/build/Mailbox.js:9:14)
According to the Regex validation inside Mimetext and RFC, a mailbox like
LoremIpsum<test@mail.com>
is valid.This however caused a an exception before:
This is to fix that behaviour.