Petition Details and Chat

Petition ID 1799: The new linking function in chat doesn't handle urls at the end of a sentence or in parentheses well
Submitted Fri, 22 Nov 13 03:08:08 +0000

Links end up with unintentional characters when they are like (http://foo.com) or http://foo.com. Or other variations. What I've used with some success is this:

https?:\/\/[;\/\?:\@&=+\$,\[\]A-Za-z0-9\-_.!~*'()%#]*[\/\?:\@&=+\$\[A-Za-z0-9\-_!~*(%#]

(based on the Perl URI::Find module)

Back to the List of Petitions

You have to be logged in to chat.