From c465121a9cbb97dbac95a61a56530b35c79ed32a Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Mon, 23 Jun 2008 05:01:09 +0100 Subject: [PATCH] Make email matches case-insensitive. --- terminator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminator b/terminator index 20b55961..4414380c 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-]+[.a-z0-9-]*" + 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-]*" + 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):