forked from platformio/platformio-core
Minor grammar fix
This commit is contained in:
@ -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):
|
if not re.match(r"^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,37}$", value, flags=re.I):
|
||||||
raise click.BadParameter(
|
raise click.BadParameter(
|
||||||
"Invalid %s format. "
|
"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, "
|
"or single hyphens, cannot begin or end with a hyphen, "
|
||||||
"and must not be longer than 38 characters."
|
"and must not be longer than 38 characters."
|
||||||
% (field.lower(), field.capitalize())
|
% (field.lower(), field.capitalize())
|
||||||
|
Reference in New Issue
Block a user