mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-03-12 08:15:01 +07:00
node_modules: update (#270)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
14
node_modules/nodemailer/lib/addressparser/index.js
generated
vendored
14
node_modules/nodemailer/lib/addressparser/index.js
generated
vendored
@@ -361,6 +361,20 @@ function addressparser(str, options) {
|
||||
}
|
||||
});
|
||||
|
||||
// Merge fragments from unquoted display names containing commas/semicolons.
|
||||
// When "Joe Foo, PhD <joe@example.com>" is split on the comma, it produces
|
||||
// [{name:"Joe Foo", address:""}, {name:"PhD", address:"joe@example.com"}].
|
||||
// Detect this pattern and recombine: a name-only entry followed by an entry
|
||||
// that has both a name and an address (from angle-bracket notation).
|
||||
for (let i = parsedAddresses.length - 2; i >= 0; i--) {
|
||||
let current = parsedAddresses[i];
|
||||
let next = parsedAddresses[i + 1];
|
||||
if (current.address === '' && current.name && !current.group && next.address && next.name && !next.group) {
|
||||
next.name = current.name + ', ' + next.name;
|
||||
parsedAddresses.splice(i, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (options.flatten) {
|
||||
let addresses = [];
|
||||
let walkAddressList = list => {
|
||||
|
||||
Reference in New Issue
Block a user