1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Doc: Fixed desktop changelog generation

This commit is contained in:
Laurent Cozic 2023-10-31 15:59:58 +00:00
parent dd47571dff
commit a95a66104d
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ describe('build-release-stats', () => {
'list (#8825) (#8194 by [@CptMeetKat](https://github.com/CptMeetKat))',
'list ([#8825](https://github.com/laurent22/joplin/issues/8825)) ([#8194](https://github.com/laurent22/joplin/issues/8194) by [@CptMeetKat](https://github.com/CptMeetKat))',
],
[
'- Improved: Support for plural translations (#9033)',
'- Improved: Support for plural translations ([#9033](https://github.com/laurent22/joplin/issues/9033))',
],
];
for (const [input, expected] of testCases) {

View File

@ -64,7 +64,7 @@ function downloadCounts(release: GitHubRelease) {
}
export const replaceGitHubInternalLinks = (body: string) => {
body = body.replace(/#(\d+)(.{2})/g, (_match: string, v1: string, v2: string) => {
body = body.replace(/#(\d+)(.{1,2}|)/g, (_match: string, v1: string, v2: string) => {
if (v2.startsWith('](')) {
// The issue number is already a link, so skip it
return `#${v1}${v2}`;