Tidy up the email match, and fix the nntp one (thanks dutchie)

This commit is contained in:
Chris Jones 2010-01-19 19:44:23 +00:00
parent ac95dddfbe
commit 35910b7a85
1 changed files with 2 additions and 2 deletions

View File

@ -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