From 35910b7a85e5c35ee898664b6787b362e51cdd3c Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 19 Jan 2010 19:44:23 +0000 Subject: [PATCH] Tidy up the email match, and fix the nntp one (thanks dutchie) --- terminatorlib/terminal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 944bebe0..0177c7f8 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -217,10 +217,10 @@ class Terminal(gtk.VBox): ".]+(:[0-9]+)?(" + urlpath + ")?" + rboundry + "/?") self.matches['email'] = self.vte.match_add (lboundry + "(mailto:)?[a-zA-Z0-9][a-zA-Z0-9.+-]*@[a-zA-Z0-9]" + - "[a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+" + "[a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+" + "[.a-zA-Z0-9-]*" + rboundry) self.matches['nntp'] = self.vte.match_add (lboundry + - "news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@" + """news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@""" + "[-A-Za-z0-9.]+(:[0-9]+)?" + rboundry) # Now add any matches from plugins