mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-09-29 04:20:39 +07:00
node_modules: update (#325)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
+3
-1
@@ -113,8 +113,10 @@ class MailComposer {
|
||||
data.filename = attachment.filename;
|
||||
}
|
||||
else if (!isMessageNode && attachment.filename !== false) {
|
||||
// a backslash separates as well, so a Windows path does not put the sender's directories in the headers
|
||||
data.filename =
|
||||
(attachment.path || attachment.href || '').split('/').pop().split('?').shift() || 'attachment-' + (i + 1);
|
||||
(attachment.path || attachment.href || '').split(/[/\\]/).pop().split('?').shift() ||
|
||||
'attachment-' + (i + 1);
|
||||
if (data.filename.indexOf('.') < 0) {
|
||||
data.filename += '.' + mimeFuncs.detectExtension(data.contentType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user