Don't replace timestamp's text in description.

This commit is contained in:
Kavin
2022-09-01 20:50:06 +05:30
parent b5e80b86a9
commit a6927f9bd9
2 changed files with 5 additions and 1 deletions

View File

@@ -177,6 +177,7 @@ const mixin = {
const emailRegex = /([\w-\\.]+@(?:[\w-]+\.)+[\w-]{2,4})/g;
return string
.replace(urlRegex, url => {
if (url.endsWith("</a>")) return url;
return `<a href="${url}" target="_blank">${url}</a>`;
})
.replace(emailRegex, email => {