> as if it was an URL, which it obviously isn't

Obviously to the human eye. Not so obviously to computer algorithms.

> It is questionable in the first place that you try to parse urls that
don't start with a schema.

Indeed questionable. Which does not necessarily mean it's bad. It's a
convenience feature, and URLs pretty often appear without schema.
Probably not recognizing them would lead to way more feature requests
and complaints than a few false positive matches.

> But in any case, you need to fix your regular expression I guess

"fix" in what sense exactly?

> I see now that even wwwXexampleYcom gets recognized as an URL

URLs often begin with www5 or similar strings which are intentionally
recognized. Not sure where to draw the line which additional characters
and how many of them to accept.

> Looks like somebody forgot to escape a "." in a regular expression.

Nope. As said, the given behavior is intentional. Also, the regular
expression is backed up by more than a hundred unittests.

Sure there is room for improvement, but any such request should be
constructive, and should definitely refrain from calling an algorithm
that by its nature needs to have heuristics "retarded".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1688391

Title:
  Highlight of links in terminal is retarded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1688391/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to