From f6bfbfeba9255f0faef26f109d4ac81ba4bf3242 Mon Sep 17 00:00:00 2001 From: Alban Crommer Date: Fri, 22 May 2020 20:27:22 +0000 Subject: [PATCH] [fix] Make files links nicer --- public/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index faca366..f1d8d0a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -19,9 +19,9 @@ escape = function(string) { return htmlEscapes[match]; }); }; -var urlRegex = /(https?://[^\s]+)/g; +var urlRegex = /(\S+): (https?://[^\s]+)/g; url = function(string){ - return ''+string.replace(urlRegex, '$1') + return ''+string.replace(urlRegex, '$1') } var titleRegex = /^(.*\n)/; title = function(string){