From: anthonybaxter Date: Tue, 1 Jul 2003 08:16:59 +0000 (+0000) Subject: expand list of chars considered in an email address for the auto- X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d105ca384b4161a73b45ff587d6acca0762f5df3;p=roundup.git expand list of chars considered in an email address for the 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. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1782 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index f4707ad..7c5570c 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -836,7 +836,7 @@ class HTMLProperty: class StringHTMLProperty(HTMLProperty): hyper_re = re.compile(r'((?P\w{3,6}://\S+)|' - r'(?P[\w\.]+@[\w\.\-]+)|' + r'(?P[-+=%/;\w\.]+@[\w\.\-]+)|' r'(?P(?P[a-z_]+)(?P\d+)))') def _hyper_repl(self, match): if match.group('url'):