aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2023-04-17 22:58:12 +0200
committerGitHub <noreply@github.com>2023-04-17 22:58:12 +0200
commit62693981f8417f56b4ed5cfcea4b851ec2720f5f (patch)
treecaab0bd8b88216b2a8e102b87eda2b35a44c4f2d /src-vue/src
parentbf3f201c4f971cf5fc2a5b2cdfea8fdf1236ed6f (diff)
downloadFlightCore-62693981f8417f56b4ed5cfcea4b851ec2720f5f.tar.gz
FlightCore-62693981f8417f56b4ed5cfcea4b851ec2720f5f.zip
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
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/views/ChangelogView.vue2
1 files changed, 1 insertions, 1 deletions
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});
},