From b738850ab1868d1e41fe8b339139c98b56dc3351 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sun, 25 Apr 2021 16:14:13 +0200 Subject: [PATCH] main: style fix --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 2d18aeb..f3d2c58 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ const nodemailer = require("nodemailer") const core = require("@actions/core") const fs = require("fs") -const showdown = require('showdown') +const showdown = require("showdown") function getBody(bodyOrFile, convertMarkdown) { let body = bodyOrFile @@ -22,7 +22,7 @@ function getBody(bodyOrFile, convertMarkdown) { } function getFrom(from, username) { - if (from.match(/.+<.+@.+>/)) { + if (from.match(/.+ <.+@.+>/)) { return from } @@ -59,7 +59,7 @@ async function main() { rejectUnauthorized: false } : undefined }) - + const info = await transport.sendMail({ from: getFrom(from, username), to: to,