summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 933e72f)
raw | patch | inline | side by side (parent: 933e72f)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Dec 2002 05:24:41 +0000 (05:24 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Dec 2002 05:24:41 +0000 (05:24 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1416 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/templating.py | patch | blob | history |
index b65dec552b519b0e04b3ff85f59ad41e810edf9e..2fe6d2390af09d6de265066688afbe0f74884dd1 100644 (file)
class StringHTMLProperty(HTMLProperty):
url_re = re.compile(r'\w{3,6}://\S+')
email_re = re.compile(r'\w+@[\w\.\-]+')
- designator_re = re.compile(r'([a-z_]+)([\d+])')
+ designator_re = re.compile(r'([a-z_]+)(\d+)')
def _url_repl(self, match):
s = match.group(0)
return '<a href="%s">%s</a>'%(s, s)