aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.ts')
-rw-r--r--js/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/main.ts b/js/main.ts
index 29b4a68..e8c2cfb 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -298,7 +298,7 @@ function generateMarkupForPlainLinks() {
298 } 298 }
299 299
300 const contentEl = document.getElementsByClassName('content')[0]; 300 const contentEl = document.getElementsByClassName('content')[0];
301 const urlRegex = /\b[a-z]*:\/\/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*/g; 301 const urlRegex = /\b[a-z]*:\/\/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,}\b[-a-zA-Z0-9@:%_\+.,~#?&//=]*/g;
302 const mailRegex = /\bmailto:[-a-zA-Z0-9@:%._\+~#=]+@(?:[-a-zA-Z0-9@:%._\+~#=]+\.)+[a-z]{2,}\b/g; 302 const mailRegex = /\bmailto:[-a-zA-Z0-9@:%._\+~#=]+@(?:[-a-zA-Z0-9@:%._\+~#=]+\.)+[a-z]{2,}\b/g;
303 303
304 contentEl.innerHTML = contentEl.innerHTML.replace(urlRegex, match => { 304 contentEl.innerHTML = contentEl.innerHTML.replace(urlRegex, match => {