diff --git a/git-hangman-lab/scripts/create-repo b/git-hangman-lab/scripts/create-repo index b2f9adf..67d52fb 100755 --- a/git-hangman-lab/scripts/create-repo +++ b/git-hangman-lab/scripts/create-repo @@ -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