allow dashes in domain names

This commit is contained in:
spez
2008-10-06 14:30:39 -07:00
parent d31abf431c
commit 7d93d076d7

View File

@@ -257,7 +257,7 @@ class SubredditMiddleware(object):
return self.app(environ, start_response)
class DomainListingMiddleware(object):
domain_pattern = re.compile(r'^/domain/(([\w]+\.)+[\w]+)')
domain_pattern = re.compile(r'^/domain/(([-\w]+\.)+[\w]+)')
def __init__(self, app):
self.app = app