Minor grammar fix

This commit is contained in:
Ivan Kravets
2020-06-03 22:40:37 +03:00
parent 87b5fbd237
commit d7f4eb5955

View File

@ -34,7 +34,7 @@ def validate_username(value, field="username"):
if not re.match(r"^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,37}$", value, flags=re.I):
raise click.BadParameter(
"Invalid %s format. "
"%s must only contain alphanumeric characters "
"%s must contain only alphanumeric characters "
"or single hyphens, cannot begin or end with a hyphen, "
"and must not be longer than 38 characters."
% (field.lower(), field.capitalize())