mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-05 20:25:02 -05:00
allow dashes in domain names
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user