diff --git a/src/.vuepress/components/WhatsNew.vue b/src/.vuepress/components/WhatsNew.vue index 8ce4245e..87757438 100644 --- a/src/.vuepress/components/WhatsNew.vue +++ b/src/.vuepress/components/WhatsNew.vue @@ -29,8 +29,8 @@ export default { try { const { data } = await this.$store.dispatch("getStableReleaseData"); this.$data.whatsNew = marked(data.body).replace( - /\(@(.*?)\)/g, - "(@$1)" + /(?<=\(|(, ))@(.*?)(?=\)|(, ))/g, + "@$2" ); } catch (e) { console.error(e);