This is not a matter of "having to be heuristic", this is plain wrong.
Here you are matching something that can be easily ruled out by a non-
heuristic rule without introducing any false negative, so it IS
retarded.

How can this possibly make sense:
  example.com/foo/bar => not an URL
  wwwexamplecom/foo/bar => URL

What's the rationale? Ok, I see, it seems to be "ANYTHING that starts with 
www". Even "wwwlalala" is highlighted as a url.
That's just plain stupid (sorry, it's just a fact, and note that I AM being 
constructive by pointing out a stupid error that can easily be fixed). There's 
no way that something that doesn't even contain a dot can be an absolute url 
(detecting relative urls would make no sense, right?)

At the very least, the "starts with www" criteria should be changed to
"starts with www, optionally followed by letters, numbers, dashes and
underscores, followed by a dot" (and then at least a non-space
character).

This would eliminate a lot of false positives with no single added false
negative, and it's trivial.

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

Title:
  Highlight of links in terminal is retarded

Status in gnome-terminal package in Ubuntu:
  New

Bug description:
  Steps to reproduce:
  - In a terminal, type this command:
      ls /srv/www/example.com/htdocs
  - hit Enter
  - move the mouse cursor over "www" or over "example.com"

  Expected:
  - nothing should happen
  Observed:
  - The substring "www/example.com/htdocs" is underlined and right-clickable as 
if it was an URL, which it obviously isn't.

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

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

  I see now that even wwwXexampleYcom gets recognized as an URL. Looks
  like somebody forgot to escape a "." in a regular expression.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: gnome-terminal 3.18.3-1ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49
  Uname: Linux 4.4.0-72-generic x86_64
  NonfreeKernelModules: nvidia_uvm nvidia
  ApportVersion: 2.20.1-0ubuntu2.5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu May  4 21:40:58 2017
  InstallationDate: Installed on 2013-10-11 (1301 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  SourcePackage: gnome-terminal
  UpgradeStatus: Upgraded to xenial on 2016-12-11 (143 days ago)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to