1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 14:00:00 +00:00

Fix username validator

Tehee, oops!
This commit is contained in:
TheAMM 2017-05-26 01:47:05 +03:00
parent 3f49f17baa
commit b6ecad898d

View file

@ -37,7 +37,7 @@ class Unique(object):
_username_validator = Regexp(
r'[a-zA-Z0-9_\-]+',
r'^[a-zA-Z0-9_\-]+$',
message='Your username must only consist of alphanumerics and _- (a-zA-Z0-9_-)')