changeset 1716:8054b5813aa3 maint-0.5

backport: 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:17:21 +0000
parents 139e9eae9041
children cbc8349aff28
files roundup/cgi/templating.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Tue Jun 24 08:18:50 2003 +0000
+++ b/roundup/cgi/templating.py	Tue Jul 01 08:17:21 2003 +0000
@@ -738,7 +738,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/