mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2016
Posts: 1
J
JerradN Offline OP
Mostly harmless
OP Offline
Mostly harmless
J
Joined: Jun 2016
Posts: 1
It appears as if the regex/function used to find URLs in messages and make them clickable doesn't deal well with square brackets in the path.

For example, if the following appears in a message:

Quote:


...then any part of the URL including and after the first square bracket is not parsed:



Personally, the best URL regex I've used is this one here, and it's got an MIT license so it could be used in mIRC as-is:

https://gist.github.com/dperini/729294

Thanks!

Joined: Feb 2011
Posts: 477
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 477

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
As per the specification, square brackets must be encoded in the 'query' part of the URL. As such, your example is not a valid URL, and any source that generates such a URL is in violation of the specification.

Edit: just to be clear, the thread linked to by KindOne shows that there is a bug here nonetheless.


Saturn, QuakeNet staff

Link Copied to Clipboard