mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-26 19:13:06 +07:00
main: style fix
This commit is contained in:
parent
c938b3cb85
commit
b738850ab1
4
main.js
4
main.js
@ -1,7 +1,7 @@
|
|||||||
const nodemailer = require("nodemailer")
|
const nodemailer = require("nodemailer")
|
||||||
const core = require("@actions/core")
|
const core = require("@actions/core")
|
||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
const showdown = require('showdown')
|
const showdown = require("showdown")
|
||||||
|
|
||||||
function getBody(bodyOrFile, convertMarkdown) {
|
function getBody(bodyOrFile, convertMarkdown) {
|
||||||
let body = bodyOrFile
|
let body = bodyOrFile
|
||||||
@ -22,7 +22,7 @@ function getBody(bodyOrFile, convertMarkdown) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getFrom(from, username) {
|
function getFrom(from, username) {
|
||||||
if (from.match(/.+<.+@.+>/)) {
|
if (from.match(/.+ <.+@.+>/)) {
|
||||||
return from
|
return from
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user