From 7effb69a75fd35dc53ea6dad5f3fa60cbd523ee7 Mon Sep 17 00:00:00 2001 From: SethCohen Date: Wed, 24 Aug 2022 00:08:56 -0400 Subject: [PATCH] feat: updated action description format --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index d7d3f15..b3ba763 100644 --- a/index.js +++ b/index.js @@ -28,13 +28,13 @@ async function run () { const content = await getContext() const description = content.body - .replace(/## (.*?)\n/g,function (substring) { - const newString = substring.slice(3) - return `**${newString}**\n` - }) .replace(/### (.*?)\n/g,function (substring) { const newString = substring.slice(4) - return `**__${newString}__**\n` + return `**__${newString}__**` + }) + .replace(/## (.*?)\n/g,function (substring) { + const newString = substring.slice(3) + return `**${newString}**` }) const embedMsg = {