Skip to content

Commit 764f5d5

Browse files
committed
Iteration 2 of fixing trailing [/list] in steam notes
1 parent 532ebe6 commit 764f5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const steamChangeNoteContent = `v${version}\n\n` + unreleasedChangelogContent
9191
.replace(/^### (.*)$/mg, (s, text) => `[h3]${text}[/h3]`)
9292
.replace(/^\* /mg, '[*] ')
9393
.replace(/\n\n\[\*\]/mg, (s) => '\n[list]\n\[*\]')
94-
.replace(/(\[\*\][^\n]*)(\n\n|$)/mg, (s, line) => `${line}\n[/list]\n`)
94+
.replace(/(\[\*\][^\n]*)(\n\n|$)/g, (s, line) => `${line}\n[/list]\n`)
9595
.replace(/\[(.*)\]\((.*)\)/g, (s, label, url) => `[url=${url}]${label}[/url]`)
9696
.replace(/\*\*\*(.*)\*\*\*/g, (s, text) => `[b][i]${text}[/i][/b]`)
9797
.replace(/\*\*(.*)\*\*/g, (s, text) => `[b]${text}[/b]`)

0 commit comments

Comments
 (0)