Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/huggingface_hub/utils/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def validate_repo_id(repo_id: str) -> None:

if not REPO_ID_REGEX.match(repo_id):
raise HFValidationError(
"Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are"
" forbidden, '-' and '.' cannot start or end the name, max length is 96:"
"Repo id must use alphanumeric chars, '-', '_' or '.'."
" The name cannot start or end with '-' or '.' and the maximum length is 96:"
f" '{repo_id}'."
)

Expand Down
Loading