diff roundup/cgi/templating.py @ 1357:a51c2a389c13

better hyperlinking
author Andrey Lebedev <kedder@users.sourceforge.net>
date Fri, 10 Jan 2003 12:09:33 +0000
parents 013ae8c6c8b1
children 1d1ee96e8956
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Jan 09 22:59:20 2003 +0000
+++ b/roundup/cgi/templating.py	Fri Jan 10 12:09:33 2003 +0000
@@ -735,7 +735,7 @@
 
 class StringHTMLProperty(HTMLProperty):
     url_re = re.compile(r'\w{3,6}://\S+')
-    email_re = re.compile(r'\w+@[\w\.\-]+')
+    email_re = re.compile(r'[\w\.]+@[\w\.\-]+')
     designator_re = re.compile(r'([a-z_]+)(\d+)')
     def _url_repl(self, match):
         s = match.group(0)

Roundup Issue Tracker: http://roundup-tracker.org/