Skip to content

Commit 9cfff33

Browse files
committed
fix: Escape asterisks in commit subjects
1 parent 79dba49 commit 9cfff33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export function generateReleaseNotes(commits) {
173173
function writeSection(category, title) {
174174
sb.push(`### ${title}\n\n`);
175175
for (let { subject, hash, body } of category) {
176+
subject = subject.replace(/\*/g, "\\*");
176177
sb.push(`* **${subject}** (${hash})\n`);
177178
if (body.length) {
178179
body = body.split(/\r?\n/g).join("\n ");

0 commit comments

Comments
 (0)