Skip to content

Commit

Permalink
Minor correction to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tapadipti committed Oct 10, 2023
1 parent 701fa68 commit e4c91fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gto/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def check_string_is_valid(value, regex=name_re):
def assert_name_is_valid(value):
if not check_string_is_valid(value, regex=name_re):
raise ValidationError(
f"Invalid value '{value}'. Only lowercase english letters, , '-', '/' are allowed."
f"Invalid value '{value}'. Only english letters, '_', '-', '/' are allowed."
"Value must be of len >= 2, must with a letter and end with a letter or a number."
)

Expand All @@ -80,7 +80,7 @@ def assert_fullname_is_valid(value):
if not check_string_is_valid(value, regex=fullname_re):
# fix error message to be regex-specific
raise ValidationError(
f"Invalid value '{value}'. Only lowercase english letters, , '-', '/' are allowed."
f"Invalid value '{value}'. Only english letters, '_', '-', '/' are allowed."
"Value must be of len >= 2, must start with a letter and end with a letter or a number."
)

Expand Down

0 comments on commit e4c91fc

Please sign in to comment.