mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-11 04:19:31 +00:00
docs: fix changelogs
This commit is contained in:
@@ -47,13 +47,16 @@ const ChangelogPage = async () => {
|
|||||||
const mainContent = line.split(";")[0];
|
const mainContent = line.split(";")[0];
|
||||||
const context = line.split(";")[2];
|
const context = line.split(";")[2];
|
||||||
const mentions = context
|
const mentions = context
|
||||||
.split(" ")
|
?.split(" ")
|
||||||
.filter((word) => word.startsWith("@"))
|
.filter((word) => word.startsWith("@"))
|
||||||
.map((mention) => {
|
.map((mention) => {
|
||||||
const username = mention.replace("@", "");
|
const username = mention.replace("@", "");
|
||||||
const avatarUrl = `https://github.com/${username}.png`;
|
const avatarUrl = `https://github.com/${username}.png`;
|
||||||
return `[](https://github.com/${username})`;
|
return `[](https://github.com/${username})`;
|
||||||
});
|
});
|
||||||
|
if (!mentions) {
|
||||||
|
return line;
|
||||||
|
}
|
||||||
// Remove  
|
// Remove  
|
||||||
return mainContent.replace(/ /g, "") + " – " + mentions.join(" ");
|
return mainContent.replace(/ /g, "") + " – " + mentions.join(" ");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user