diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-11-12 13:57:00 +0100 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-11-12 13:57:00 +0100 |
commit | 423c8fd8fc6b88763dc4cbc53a723a3c639d0e81 (patch) | |
tree | 763d87bc295d04a8e0f1e73828b5314c30a8e8af /js | |
parent | Enable compression with brotli (diff) | |
download | gopherproxy-423c8fd8fc6b88763dc4cbc53a723a3c639d0e81.tar.gz gopherproxy-423c8fd8fc6b88763dc4cbc53a723a3c639d0e81.tar.bz2 gopherproxy-423c8fd8fc6b88763dc4cbc53a723a3c639d0e81.zip |
Include comma in URL regex
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 => { |