[fix] Make files links nicer
This commit is contained in:
parent
fd4d8c0e85
commit
f6bfbfeba9
@ -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, '<a target="_blank" href="$1">$1</a>')
|
||||
return ''+string.replace(urlRegex, '<a target="_blank" href="$2">$1</a>')
|
||||
}
|
||||
var titleRegex = /^(.*\n)/;
|
||||
title = function(string){
|
||||
|
Loading…
Reference in New Issue
Block a user