Skip to content

Commit

Permalink
fix: fix template format issue. (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 3, 2023
1 parent 6de4323 commit 26812b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function getCommitLog(log: string[], options = {} as Options) {
if (arr.length > 0) return arr.join('\n');
return string;
});
changelogContent = changelogContent.replace(/##+\s[\D]+\{\{\w+\}\}/g, '');
changelogContent = changelogContent.replace(/##(.*?)\n+\{\{(.*?)\}\}(\s+)?(\n+)?/g, '');
} else {
changelogContent = log.join('\n');
}
Expand Down

0 comments on commit 26812b1

Please sign in to comment.