Skip to content

Commit

Permalink
Update smtp.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mathe42 authored Apr 24, 2022
1 parent 5da968b commit ad22af0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smtp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class SmtpClient {
// calc msg boundary
// TODO: replace this with a match or so.
config.mimeContent.map((v) => v.content).join("\n").replace(
new RegExp("--attachment(\d+)", "g"),
new RegExp("--attachment([0-9]+)", "g"),
(_, numb) => {
boundaryAdditionAtt += parseInt(numb, 10);

Expand All @@ -279,7 +279,7 @@ export class SmtpClient {
const arr = new Uint8Array(v.encoding === 'base64' ? base64Decode(v.content) : v.content);

return dec.decode(arr);
}).join("\n").replace(new RegExp("--attachment(\d+)", "g"), (_, numb) => {
}).join("\n").replace(new RegExp("--attachment([0-9]+)", "g"), (_, numb) => {
boundaryAdditionAtt += parseInt(numb, 10);

return "";
Expand All @@ -291,7 +291,7 @@ export class SmtpClient {
// calc msg boundary
// TODO: replace this with a match or so.
config.mimeContent.map((v) => v.content).join("\n").replace(
new RegExp("--message(\d+)", "g"),
new RegExp("--message([0-9]+)", "g"),
(_, numb) => {
boundaryAddition += parseInt(numb, 10);

Expand Down

0 comments on commit ad22af0

Please sign in to comment.