mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-14 20:13:23 +00:00
feat: updated action description format
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user