parentheses symbols following a URL are mishandled
cjdavis opened this issue · comments
Chris Davis commented
If a ( or ) follows a URL, the bot appends it to the url sent to bit.ly, causing it to encode the wrong url.
Paul Vincent commented
Trailing parenthesis can be valid parts of a URL, so I think this is an issue that can not be resolved without breaking other correct implementations.
For example: http://en.wikipedia.org/wiki/Point_(album)
A workaround would be to put a space after any URL before closing a parenthesis.
Chris Davis commented
Agreed - you would need to parse for opening and closing parens before the url (an excessive amount of work for a minimal benefit)