Skip to content

Commit 923640e

Browse files
author
Alexander Smishlajev
committed
fix sre_constants.error:
nothing to repeat in StringHTMLProperty hyperlink regexp
1 parent 8d89e1c commit 923640e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/templating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def history(self, direction='descending', dre=re.compile('^\d+$')):
776776
id = self._klass.get(self._nodeid, prop_n, None)
777777
current[prop_n] = '<a href="%s%s">%s</a>'%(
778778
classname, id, current[prop_n])
779-
779+
780780
# get the journal, sort and reverse
781781
history = self._klass.history(self._nodeid)
782782
history.sort()
@@ -1088,7 +1088,7 @@ def is_view_ok(self):
10881088
class StringHTMLProperty(HTMLProperty):
10891089
hyper_re = re.compile(r'((?P<url>\w{3,6}://\S+)|'
10901090
r'(?P<email>[-+=%/\w\.]+@[\w\.\-]+)|'
1091-
r'(?P<item>(?P<class>[A-Za-z_]+)(\s*)?(?P<id>\d+)))')
1091+
r'(?P<item>(?P<class>[A-Za-z_]+)(\s*)(?P<id>\d+)))')
10921092
def _hyper_repl(self, match):
10931093
if match.group('url'):
10941094
s = match.group('url')

0 commit comments

Comments
 (0)