From b5e92fe65e559b93d6e942e0bb557d9dae977aad Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 2 Dec 2020 15:21:15 -0800 Subject: [PATCH] Allow usernames with dots --- bookwyrm/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 3b3c1ab5..092bec3b 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -6,7 +6,7 @@ from django.urls import path, re_path from bookwyrm import incoming, outgoing, views, settings, wellknown from bookwyrm import view_actions as actions -username_regex = r'(?P[\w\-_]+@[\w\-\_\.]+)' +username_regex = r'(?P[\w\-_\.]+@[\w\-\_\.]+)' localname_regex = r'(?P[\w\-_]+)' user_path = r'^user/%s' % username_regex local_user_path = r'^user/%s' % localname_regex