Skip to content

Commit

Permalink
Iteration 2 of fixing trailing [/list] in steam notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbjorge committed Nov 1, 2020
1 parent 532ebe6 commit 764f5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const steamChangeNoteContent = `v${version}\n\n` + unreleasedChangelogContent
.replace(/^### (.*)$/mg, (s, text) => `[h3]${text}[/h3]`)
.replace(/^\* /mg, '[*] ')
.replace(/\n\n\[\*\]/mg, (s) => '\n[list]\n\[*\]')
.replace(/(\[\*\][^\n]*)(\n\n|$)/mg, (s, line) => `${line}\n[/list]\n`)
.replace(/(\[\*\][^\n]*)(\n\n|$)/g, (s, line) => `${line}\n[/list]\n`)
.replace(/\[(.*)\]\((.*)\)/g, (s, label, url) => `[url=${url}]${label}[/url]`)
.replace(/\*\*\*(.*)\*\*\*/g, (s, text) => `[b][i]${text}[/i][/b]`)
.replace(/\*\*(.*)\*\*/g, (s, text) => `[b]${text}[/b]`)
Expand Down

0 comments on commit 764f5d5

Please sign in to comment.