From d105ca384b4161a73b45ff587d6acca0762f5df3 Mon Sep 17 00:00:00 2001 From: anthonybaxter Date: Tue, 1 Jul 2003 08:16:59 +0000 Subject: [PATCH] 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 --- roundup/cgi/templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'): -- 2.30.2