mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-18 11:34:38 +07:00
node_modules: update
This commit is contained in:
7
node_modules/nodemailer/lib/mailer/mail-message.js
generated
vendored
7
node_modules/nodemailer/lib/mailer/mail-message.js
generated
vendored
@ -64,12 +64,7 @@ class MailMessage {
|
||||
if (this.data.attachments && this.data.attachments.length) {
|
||||
this.data.attachments.forEach((attachment, i) => {
|
||||
if (!attachment.filename) {
|
||||
attachment.filename =
|
||||
(attachment.path || attachment.href || '')
|
||||
.split('/')
|
||||
.pop()
|
||||
.split('?')
|
||||
.shift() || 'attachment-' + (i + 1);
|
||||
attachment.filename = (attachment.path || attachment.href || '').split('/').pop().split('?').shift() || 'attachment-' + (i + 1);
|
||||
if (attachment.filename.indexOf('.') < 0) {
|
||||
attachment.filename += '.' + mimeFuncs.detectExtension(attachment.contentType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user