Skip to content

Commit b5bc04c

Browse files
committed
Fix designator regular expression in HTMLDatabase.__getitem__.
1 parent 6e62a80 commit b5bc04c

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
@@ -341,7 +341,7 @@ def __init__(self, client):
341341
# we want config to be exposed
342342
self.config = client.db.config
343343

344-
def __getitem__(self, item, desre=re.compile(r'(?P<cl>\w+)(?P<id>[-\d]+)')):
344+
def __getitem__(self, item, desre=re.compile(r'(?P<cl>[a-zA-Z_]+)(?P<id>[-\d]+)')):
345345
# check to see if we're actually accessing an item
346346
m = desre.match(item)
347347
if m:

0 commit comments

Comments
 (0)