diff roundup/cgi/templating.py @ 1715:cd53f6238cae

expand list of chars considered in an email address for auto-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.
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Tue, 01 Jul 2003 08:16:59 +0000
parents 38f9578de0c6
children 1d93289af20b
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Jun 26 13:06:40 2003 +0000
+++ b/roundup/cgi/templating.py	Tue Jul 01 08:16:59 2003 +0000
@@ -836,7 +836,7 @@
 
 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'):

Roundup Issue Tracker: http://roundup-tracker.org/