dealing with https

master
Matt Huntington 10 years ago
parent cd0a6b40f3
commit f0f19aae4d

@ -55,7 +55,7 @@ module.exports = function(input){
} }
} }
html += popHTMLStack(-1, previous_line_num_tabs); html += popHTMLStack(-1, previous_line_num_tabs);
html = html.replace(/(http:\/\/[^\s<]*)/g, '<a href="$1">$1</a>'); html = html.replace(/(https?:\/\/[^\s<]*)/g, '<a href="$1">$1</a>');
previous_line_num_tabs = -1; previous_line_num_tabs = -1;
return html return html
} }

@ -1 +1,4 @@
http://www.google.com this is a list
go to this guy: http://www.google.com
this is a link in a paragraph with https: https://www.google.com

Loading…
Cancel
Save