Skip to content

Commit ec7d36b

Browse files
committed
chore(cli): error generating changelog for MM (#DS-4724) (#1375)
1 parent 4283017 commit ec7d36b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/src/release/extract-release-notes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ export function extractReleaseNotes(changelogPath: string, versionName: string):
77

88
// Regular expression that matches the release notes for the given version.
99
const releaseNotesRegex = new RegExp(
10-
`^(##? ${escapedVersion} \\(\\d{4}-\\d{2}-\\d{2}\\)\n\n### .+?)\n([\\s\\S]*?)(?=\n# )`
10+
`##? (${escapedVersion} \\(\\d{4}-\\d{2}-\\d{2}\\)\n\n### .+?)\n\n([\\s\\S]*?)(?=\n# )`
1111
);
1212

1313
const matches = releaseNotesRegex.exec(changelogContent);
1414

1515
return matches
1616
? {
1717
releaseTitle: matches[1],
18-
releaseNotes: matches[2].trim()
18+
releaseNotes: matches[2]
1919
}
2020
: null;
2121
}

0 commit comments

Comments
 (0)