From 62693981f8417f56b4ed5cfcea4b851ec2720f5f Mon Sep 17 00:00:00 2001
From: Rémy Raes <contact@remyraes.com>
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, `<a target="_blank" href="https://github.com/$1">@$1</a>`);
 
             // PR's links formatting
-            content = content.replaceAll(/\[\#(\S+)\]\(([^)]+)\)/g, `<a target="_blank" href="$2">#$1</a>`);
+            content = content.replaceAll(/\[(\S*)\#(\S+)\]\(([^)]+)\)/g, `<a target="_blank" href="$3">$1#$2</a>`);
 
             return marked.parse(content, {breaks: true});
         },
-- 
cgit v1.2.3

