~cadence/carbon-discuss

1

Bad URL detection

Bopol
Details
Message ID
<208fcdef-273a-c49d-85e9-7989188a95fa@e.email>
DKIM signature
pass
Download raw message
With ( and ):

https://en.wikipedia.org/wiki/President_(government_title)
is detected as https://en.wikipedia.org/wiki/President_(government_title
and breaks the URL.
Details
Message ID
<669a1876-e983-42d8-9abe-188456d38c8b@disroot.org>
In-Reply-To
<208fcdef-273a-c49d-85e9-7989188a95fa@e.email> (view parent)
DKIM signature
pass
Download raw message
Problem is that if we detect close brackets, then we'd have cases like:

> See my personal website (http://example.com/about.html) and...

If the ) was included, it would break the URL in the other way.

URLs just suck. There's no good way to do this. The most common solution 
for autolinkers is to not include the close bracket. And as you can see, 
Wikipedia provides a "did you mean".
Reply to thread Export thread (mbox)