From 3090bb58f55e528ef9767c65271b8782b0d0a7de Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Mon, 23 Jun 2008 04:54:02 +0100 Subject: [PATCH] Eliminate the final group in the email regexp, so VTE doesn't allow a match just on an email TLD. --- terminator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminator b/terminator index ca99a620..20b55961 100755 --- a/terminator +++ b/terminator @@ -356,7 +356,7 @@ text/plain self.add_matches(lboundry = "\\<", rboundry = "\\>") else: self.matches['addr_only'] = self._vte.match_add (lboundry + "(www|ftp)[" + hostchars + "]*\.[" + hostchars + ".]+(:[0-9]+)?(" + urlpath + ")?" + rboundry + "/?") - self.matches['email'] = self._vte.match_add (lboundry + "(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\.[a-z0-9][a-z0-9-]*)+" + rboundry) + self.matches['email'] = self._vte.match_add (lboundry + "(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-]+[.a-z0-9-]*" + rboundry) self.matches['nntp'] = self._vte.match_add (lboundry + '''news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@[-A-Za-z0-9.]+(:[0-9]+)?''' + rboundry) def spawn_child (self, event=None):