Skip to content

Commit f9a770d

Browse files
author
Anthony Baxter
committed
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 feefbaa commit f9a770d

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
@@ -836,7 +836,7 @@ def __cmp__(self, other):
836836

837837
class StringHTMLProperty(HTMLProperty):
838838
hyper_re = re.compile(r'((?P<url>\w{3,6}://\S+)|'
839-
r'(?P<email>[\w\.]+@[\w\.\-]+)|'
839+
r'(?P<email>[-+=%/;\w\.]+@[\w\.\-]+)|'
840840
r'(?P<item>(?P<class>[a-z_]+)(?P<id>\d+)))')
841841
def _hyper_repl(self, match):
842842
if match.group('url'):

0 commit comments

Comments
 (0)