From fc720ac05a632b49fa7e5662eb55cd446d062ba7 Mon Sep 17 00:00:00 2001 From: lyn Date: Mon, 13 Apr 2026 10:02:01 +0000 Subject: [PATCH] Allow dots in repo name for create-repo --- git-hangman-lab/scripts/create-repo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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