We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a38a112 commit f936ce7Copy full SHA for f936ce7
1 file changed
scripts/functions/vhost/vhost-install.sh
@@ -45,7 +45,7 @@ echo ""
45
# Prompt for domain name
46
while true; do
47
read -p "Enter the domain name (e.g., 'wordpresstesting'): " DOMAIN_NAME
48
- if [[ "$DOMAIN_NAME" =~ ^[a-z0-9-]+$ ]]; then
+ if [[ "$DOMAIN_NAME" =~ ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$ ]]; then
49
echo "You entered: ${DOMAIN_NAME}"
50
break
51
else
0 commit comments