aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-11-12 13:57:00 +0100
committerFeuerfuchs <git@feuerfuchs.dev>2019-11-12 13:57:00 +0100
commit423c8fd8fc6b88763dc4cbc53a723a3c639d0e81 (patch)
tree763d87bc295d04a8e0f1e73828b5314c30a8e8af /js
parentEnable compression with brotli (diff)
downloadgopherproxy-423c8fd8fc6b88763dc4cbc53a723a3c639d0e81.tar.gz
gopherproxy-423c8fd8fc6b88763dc4cbc53a723a3c639d0e81.tar.bz2
gopherproxy-423c8fd8fc6b88763dc4cbc53a723a3c639d0e81.zip
Include comma in URL regex
Diffstat (limited to 'js')
-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 => {