From 6cf9efb8f65526de47e335b56163eef55b6b9a1c Mon Sep 17 00:00:00 2001 From: SethCohen Date: Wed, 24 Aug 2022 00:21:19 -0400 Subject: [PATCH] feat: updated action description format --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b64082d..8f8cf61 100644 --- a/index.js +++ b/index.js @@ -29,11 +29,11 @@ async function run () { const description = content.body .replace(/### (.*?)\n/g,function (substring) { - const newString = substring.slice(4) + const newString = substring.slice(4).replace(/(\r\n|\n|\r)/gm, "") return `**__${newString}__**` }) .replace(/## (.*?)\n/g,function (substring) { - const newString = substring.slice(3) + const newString = substring.slice(3).replace(/(\r\n|\n|\r)/gm, "") return `**${newString}**` }) .replace(/\n\s*\n/g, '\n')