diff options
author | Rémy Raes <contact@remyraes.com> | 2023-04-17 22:58:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 22:58:12 +0200 |
commit | 62693981f8417f56b4ed5cfcea4b851ec2720f5f (patch) | |
tree | caab0bd8b88216b2a8e102b87eda2b35a44c4f2d /src-vue/src | |
parent | bf3f201c4f971cf5fc2a5b2cdfea8fdf1236ed6f (diff) | |
download | FlightCore-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.vue | 2 |
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}); }, |