Skip to content

Commit 8372bfe

Browse files
author
Anthony Baxter
committed
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.
1 parent 898f720 commit 8372bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def __cmp__(self, other):
738738

739739
class StringHTMLProperty(HTMLProperty):
740740
hyper_re = re.compile(r'((?P<url>\w{3,6}://\S+)|'
741-
r'(?P<email>[\w\.]+@[\w\.\-]+)|'
741+
r'(?P<email>[-+=%/;\w\.]+@[\w\.\-]+)|'
742742
r'(?P<item>(?P<class>[a-z_]+)(?P<id>\d+)))')
743743
def _hyper_repl(self, match):
744744
if match.group('url'):

0 commit comments

Comments
 (0)