dev-ext / twitterjs

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

Links with ampersand (&) are getting split and not working with option enableLinks. #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Post a tweet that contains a link with an ampersand (example: 
http://www.somesite.com?field1=0&field2=1)
2. Check the html rendered by twitterjs on site and see that everything up to 
and including the & is replaced by the shortened text with ... and the rest of 
the url is left as plain text. The full url is not included in the href 
attribute for the link either.

This is similar to the issue with the ~ in the url. It looks like the ampersand 
is in the regular expression for the conversion in the twitterjs source, but it 
doesn't appear to be working.

This is occurring with the latest version of twitterjs as used via the url 
reference to the hosted min file on google code.

Please provide any additional information below.

Original issue reported on code.google.com by schwa...@gmail.com on 29 Jul 2010 at 5:21