Skip to content

Commit f936ce7

Browse files
authored
Update vhost-install.sh
1 parent a38a112 commit f936ce7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/functions/vhost/vhost-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo ""
4545
# Prompt for domain name
4646
while true; do
4747
read -p "Enter the domain name (e.g., 'wordpresstesting'): " DOMAIN_NAME
48-
if [[ "$DOMAIN_NAME" =~ ^[a-z0-9-]+$ ]]; then
48+
if [[ "$DOMAIN_NAME" =~ ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$ ]]; then
4949
echo "You entered: ${DOMAIN_NAME}"
5050
break
5151
else

0 commit comments

Comments
 (0)