Code

expand list of chars considered in an email address for the auto-
authoranthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 1 Jul 2003 08:16:59 +0000 (08:16 +0000)
committeranthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 1 Jul 2003 08:16:59 +0000 (08:16 +0000)
hyperlink-quoting. It's still not the full list (see RFC2822, 3.4.1),
but unless you want to go down the "dealing with quoted whitespace"
path, this is probably good enough.

git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1782 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index f4707ad061a2d2012b18d5e806438bbf5251885d..7c5570cdff152a6dafc1e2b339dce11b1b6800a2 100644 (file)
@@ -836,7 +836,7 @@ class HTMLProperty:
 
 class StringHTMLProperty(HTMLProperty):
     hyper_re = re.compile(r'((?P<url>\w{3,6}://\S+)|'
-                          r'(?P<email>[\w\.]+@[\w\.\-]+)|'
+                          r'(?P<email>[-+=%/;\w\.]+@[\w\.\-]+)|'
                           r'(?P<item>(?P<class>[a-z_]+)(?P<id>\d+)))')
     def _hyper_repl(self, match):
         if match.group('url'):