on master help sign in
Support dat:// URLs
commit12ac41290ea6487681f23d311d7f70dcd62052a2 authorLiam Cooke <noreply@liamcooke.com> dateMon 12 Aug 2019, 22:19 (7 years ago) parent8cdc274
1 file changed+1−1
scripts/wiki.js+1−1
scripts/wiki.js+1−1
@@ -56,7 +56,7 @@ const Wiki = sites => {
5656 }
5757
5858 const formatLinks = text => text.replace(
59− new RegExp('\\b(https?://[^."\\s]+\\.[^"\\s]+)', 'g'),
59+ new RegExp('\\b((https?|dat)://[^"\\s]+)', 'g'),
6060 '<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>'
6161 )
6262