| changeset 1002 | a86208b60c91 |
| parent 1001 | 3210bf928a11 |
| child 1013 | 392ddcd212d7 |
--- a/src/js/utils.js Thu May 16 13:34:02 2013 +0200 +++ b/src/js/utils.js Tue Jun 18 11:08:50 2013 +0200 @@ -57,7 +57,7 @@ addToList(_regexp, '<span class="Ldt-Highlight">', '</span>'); } - addToList(/(https?:\/\/)?\w+\.\w+\S+/gm, function(matches) { + addToList(/(https?:\/\/)?[\w\d\-]+\.[\w\d\-]+\S+/gm, function(matches) { return '<a href="' + (matches[1] ? '' : 'http://') + matches[0] + '" target="_blank">' }, '</a>'); addToList(/@([\d\w]{1,15})/gm, function(matches) {