Skip to content

Commit

Permalink
feat: updated action description format
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Aug 24, 2022
1 parent 8cefd5b commit 6cf9efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6cf9efb

Please sign in to comment.