mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-12-25 22:20:20 +00:00
Don't replace timestamp's text in description.
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user