mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-26 02:53:08 +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 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user