diff --git a/packages/tools/build-release-stats.test.ts b/packages/tools/build-release-stats.test.ts index d7dd3a960..fcade4a19 100644 --- a/packages/tools/build-release-stats.test.ts +++ b/packages/tools/build-release-stats.test.ts @@ -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) { diff --git a/packages/tools/build-release-stats.ts b/packages/tools/build-release-stats.ts index 4e97c40dd..2deb69221 100644 --- a/packages/tools/build-release-stats.ts +++ b/packages/tools/build-release-stats.ts @@ -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}`;