fedimbed: ensure masked link alt text gets cleared as well

This commit is contained in:
Cynthia Foxwell 2024-04-16 13:15:01 -06:00
parent c0327e1f98
commit 92e803b9bb

View file

@ -1037,7 +1037,7 @@ events.add("messageCreate", "fedimbed", async function (msg) {
url = url
.replace(/\|/g, "")
.replace(/^\]\(/, "")
.replace(/\)$/, "")
.replace(/\s*[\S]*?\)$/, "")
.trim()
.replace("@\u200b", "@")
.replace("@%E2%80%8B", "@");