From 62693981f8417f56b4ed5cfcea4b851ec2720f5f Mon Sep 17 00:00:00 2001 From: Rémy Raes Date: Mon, 17 Apr 2023 22:58:12 +0200 Subject: fix: Update regex to match new release notes format (#274) Update regex to match new release notes format to open PR links in external browser --- src-vue/src/views/ChangelogView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-vue/src/views/ChangelogView.vue') diff --git a/src-vue/src/views/ChangelogView.vue b/src-vue/src/views/ChangelogView.vue index 9335220e..e68beded 100644 --- a/src-vue/src/views/ChangelogView.vue +++ b/src-vue/src/views/ChangelogView.vue @@ -46,7 +46,7 @@ export default defineComponent({ let content: string = releaseBody.replaceAll(/\@(\S+)/g, `@$1`); // PR's links formatting - content = content.replaceAll(/\[\#(\S+)\]\(([^)]+)\)/g, `#$1`); + content = content.replaceAll(/\[(\S*)\#(\S+)\]\(([^)]+)\)/g, `$1#$2`); return marked.parse(content, {breaks: true}); }, -- cgit v1.2.3