Detecting URLs in text is great fun.

When should characters that are allowed in URLs not be considered part of it? Cases I've dealt with today: dot/period, question mark, closing parenthesis. Examples…

Looks like the Mastodon web UI could do better, too. Especially when URLs are wrapped in angle brackets there's no reason to end them early.

@cketti It's actually doing better than many other things I've seen though... 😕

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.