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_-)')