feat: updated action description format

This commit is contained in:
SethCohen
2022-08-24 00:21:19 -04:00
parent 8cefd5bd3e
commit 6cf9efb8f6
+2 -2
View File
@@ -29,11 +29,11 @@ async function run () {
const description = content.body const description = content.body
.replace(/### (.*?)\n/g,function (substring) { .replace(/### (.*?)\n/g,function (substring) {
const newString = substring.slice(4) const newString = substring.slice(4).replace(/(\r\n|\n|\r)/gm, "")
return `**__${newString}__**` return `**__${newString}__**`
}) })
.replace(/## (.*?)\n/g,function (substring) { .replace(/## (.*?)\n/g,function (substring) {
const newString = substring.slice(3) const newString = substring.slice(3).replace(/(\r\n|\n|\r)/gm, "")
return `**${newString}**` return `**${newString}**`
}) })
.replace(/\n\s*\n/g, '\n') .replace(/\n\s*\n/g, '\n')