mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-17 19:14:38 +07:00
node_modules: upgrade
This commit is contained in:
6
node_modules/nodemailer/lib/mime-funcs/index.js
generated
vendored
6
node_modules/nodemailer/lib/mime-funcs/index.js
generated
vendored
@ -84,6 +84,12 @@ module.exports = {
|
||||
let lpart = '';
|
||||
for (let i = 0, len = encodedStr.length; i < len; i++) {
|
||||
let chr = encodedStr.charAt(i);
|
||||
|
||||
if (/[\ud83c\ud83d\ud83e]/.test(chr) && i < len - 1) {
|
||||
// composite emoji byte, so add the next byte as well
|
||||
chr += encodedStr.charAt(++i);
|
||||
}
|
||||
|
||||
// check if we can add this character to the existing string
|
||||
// without breaking byte length limit
|
||||
if (Buffer.byteLength(lpart + chr) <= maxLength || i === 0) {
|
||||
|
Reference in New Issue
Block a user