TGAndradeS / twitterjs

Automatically exported from code.google.com/p/twitterjs
MIT License
0 stars 0 forks source link

linkify() doesn't properly format URLs with tildes (~). #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Grabbed function from most recent code in SVN. Expected to see full link;
what is produced is a link of everything before the tilde. Services like
Blip.fm use tildes in their URLs (for some reason...).

Very simple fix is to update Line 360 to:
return s.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=~]+/g,
function(m) {

Or, just add a ~ into the regex match pattern...

Original issue reported on code.google.com by djmike...@gmail.com on 23 Jul 2009 at 2:48

GoogleCodeExporter commented 8 years ago
Fixed in version 1.13.1

Original comment by remysh...@gmail.com on 25 Aug 2009 at 8:07