From b6ecad898d57213c53034d399cd8e75423d9dd02 Mon Sep 17 00:00:00 2001 From: TheAMM Date: Fri, 26 May 2017 01:47:05 +0300 Subject: [PATCH] Fix username validator Tehee, oops! --- nyaa/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/forms.py b/nyaa/forms.py index be79f51..f21569b 100644 --- a/nyaa/forms.py +++ b/nyaa/forms.py @@ -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_-)')