Possible HTTP Regex issue in URL matching code
GNOME Terminal 3.34.2 using VTE 0.58.2 +BIDI +GNUTLS
20.04 LTS (Focal Fossa) (unreleased from 2020-02-23)
I believe there is an issue in the URL matching code, though I could be mistaken. According to the tests in terminal-regex.c the
REGEX_URL_HTTP should match the following URLs:
www.foo.bar/baz WWW3.foo.bar/baz FTP.FOO.BAR/BAZ ftpxy.foo.bar/baz
I ran the
termial-regex.c and indeed it does confirm that the regexes are correct as the tests pass. So the real issue could also be upstream in VTE.
Now when I open a
gnome-terminal and print the above strings then non of them is highlighted. Regular
http:// prefixed strings work since they are matched by
REGEX_URL_AS_IS. The screenshots below document this, if you look closely you can spot the cursor in the lines two to five in last four images but the corresponding lines are not highlighted.