diff --git a/src/main.js b/src/main.js
index 60ac8b7e..ed1e2531 100644
--- a/src/main.js
+++ b/src/main.js
@@ -161,11 +161,16 @@ const mixin = {
return timeAgo.format(time);
},
urlify(string) {
- const regex = /(((https?:\/\/)|(www\.))[^\s]+)/g;
if (!string) return "";
- return string.replace(regex, url => {
- return `${url}`;
- });
+ const urlRegex = /(((https?:\/\/)|(www\.))[^\s]+)/g;
+ const emailRegex = /([\w-\\.]+@(?:[\w-]+\.)+[\w-]{2,4})/g;
+ return string
+ .replace(urlRegex, url => {
+ return `${url}`;
+ })
+ .replace(emailRegex, email => {
+ return `${email}`;
+ });
},
async updateWatched(videos) {
if (window.db) {