diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 => { |