Allow usernames with dots
This commit is contained in:
parent
e0fec9f570
commit
b5e92fe65e
|
@ -6,7 +6,7 @@ from django.urls import path, re_path
|
||||||
from bookwyrm import incoming, outgoing, views, settings, wellknown
|
from bookwyrm import incoming, outgoing, views, settings, wellknown
|
||||||
from bookwyrm import view_actions as actions
|
from bookwyrm import view_actions as actions
|
||||||
|
|
||||||
username_regex = r'(?P<username>[\w\-_]+@[\w\-\_\.]+)'
|
username_regex = r'(?P<username>[\w\-_\.]+@[\w\-\_\.]+)'
|
||||||
localname_regex = r'(?P<username>[\w\-_]+)'
|
localname_regex = r'(?P<username>[\w\-_]+)'
|
||||||
user_path = r'^user/%s' % username_regex
|
user_path = r'^user/%s' % username_regex
|
||||||
local_user_path = r'^user/%s' % localname_regex
|
local_user_path = r'^user/%s' % localname_regex
|
||||||
|
|
Loading…
Reference in New Issue