Errors.InactiveRecipientsError.parseInactiveRecipients Does Not Work As Expected v3.0.14
Closed this issue · 1 comments
TKDBB84 commented
parsing the inactive recipients from the error message returns a junk response. Minimal Example:
> const postmark = require('postmark')
undefined
> postmark.Errors.InactiveRecipientsError.parseInactiveRecipients("You tried to send to recipient(s) that have been marked as inactive. Found inactive addresses: fake@example.com. Inactive recipients are ones that have generated a hard bounce, a spam complaint, or a manual suppression.")
[
'fake@example.com. Inactive recipients are ones that have generated a hard bounce',
'a spam complaint',
'or a manual suppression'
]
this should result in simply [ 'fake@example.com' ]
ibalosh commented
Thanks for reporting this. The issue was fixed in version 3.0.15