Allow dots in repo name for create-repo
This commit is contained in:
@@ -25,10 +25,10 @@ fi
|
||||
|
||||
REPO_NAME="$1"
|
||||
|
||||
# Validate repo name (alphanumeric, hyphens, underscores only)
|
||||
if ! [[ "$REPO_NAME" =~ ^[a-zA-Z0-9_-]+$ ]]; then
|
||||
# Validate repo name (alphanumeric, hyphens, underscores, dots)
|
||||
if ! [[ "$REPO_NAME" =~ ^[a-zA-Z0-9_.-]+$ ]]; then
|
||||
echo "Error: Invalid repository name '$REPO_NAME'"
|
||||
echo "Only alphanumeric characters, hyphens, and underscores are allowed."
|
||||
echo "Only alphanumeric characters, hyphens, underscores, and dots are allowed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user