mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-22 08:01:58 +01:00
Consider multi-user mentions in 'What's new' (#471)
This commit is contained in:
parent
7b621d2ac3
commit
8f807b0e92
@ -29,8 +29,8 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const { data } = await this.$store.dispatch("getStableReleaseData");
|
const { data } = await this.$store.dispatch("getStableReleaseData");
|
||||||
this.$data.whatsNew = marked(data.body).replace(
|
this.$data.whatsNew = marked(data.body).replace(
|
||||||
/\(@(.*?)\)/g,
|
/(?<=\(|(, ))@(.*?)(?=\)|(, ))/g,
|
||||||
"(<a href='https://github.com/$1' target='_blank' rel='noopener'>@$1</a>)"
|
"<a href='https://github.com/$2' target='_blank' rel='noopener'>@$2</a>"
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user