Merge pull request #338 from JAugusto42/fixing_mailto

fix: #323
This commit is contained in:
Matt Rose 2020-12-27 21:20:05 +00:00 committed by GitHub
commit 310fb09ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1523,9 +1523,7 @@ class Terminal(Gtk.VBox):
url = urlmatch[0]
match = urlmatch[1]
if match == self.matches['email'] and url[0:7] != 'mailto:':
url = 'mailto:' + url
elif match == self.matches['addr_only'] and url[0:3] == 'ftp':
if match == self.matches['addr_only'] and url[0:3] == 'ftp':
url = 'ftp://' + url
elif match == self.matches['addr_only']:
url = 'http://' + url