Permalink
Browse files

support 'https' auto-linking

  • Loading branch information...
1 parent 77ec37b commit 128decf07e7c6aa5e233767143c256584e7be162 cloudhead committed Nov 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 pub/js/thingler.js
View
2 pub/js/thingler.js
@@ -481,7 +481,7 @@ function markup(str) {
return '<em>' + match.replace(/\\_/g, '_') + '</em>';
}).replace(/`((?:\\`|[^`])+)`/g, function (_, match) {
return '<code>' + match.replace(/\\`/g, '`') + '</code>';
- }).replace(/(http:\/\/[^\s]+)/g, '<a href="$1" target="_blank">$1</a>');
+ }).replace(/(https?:\/\/[^\s]+)/g, '<a href="$1" target="_blank">$1</a>');
}
function handleSort(id, to) {

0 comments on commit 128decf

Please sign in to comment.