From e88f3b21407cbfc12edc4626c56b74629af6689d Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sat, 18 Feb 2017 21:31:52 +0100 Subject: [PATCH] Fix patterns for url matching to handle IPv6 as host --- terminatorlib/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 71cff884..00f01158 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -259,7 +259,7 @@ class Terminal(Gtk.VBox): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" - hostchars = "-A-Za-z0-9" + hostchars = "-A-Za-z0-9:\[\]" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars + "]+(:[" + passchars + "]+)?"