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