Allow dots in repo name for create-repo

This commit is contained in:
lyn
2026-04-13 10:02:01 +00:00
parent 7f2ca44ef6
commit fc720ac05a

View File

@@ -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