Skip to content

Commit

Permalink
Merge pull request #166 from ahluntang/master
Browse files Browse the repository at this point in the history
twitter.js: linkify: detect links with #
  • Loading branch information
christianvuerings committed Feb 5, 2014
2 parents 3413dca + 5b4b676 commit d4f0ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/twitter.js
Expand Up @@ -21,7 +21,7 @@

var link = function( t ) {
return t.replace(
/[a-z]+:\/\/[a-z0-9\-_]+\.[a-z0-9\-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,
/([a-z]+:\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,
function( m ) {
return '<a href="' + m + '">' +
( ( m.length > 25 ) ? m.substr( 0, 24 ) + '...' : m ) +
Expand Down

0 comments on commit d4f0ed6

Please sign in to comment.