Skip to content

Commit 372d6bf

Browse files
authored
Fix comment
1 parent 5afdb82 commit 372d6bf

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
@@ -43,7 +43,7 @@ echo "Then, select a valid TLD from the provided list."
4343
echo ""
4444

4545
# Prompt for domain name
46-
# Single character domain names are allowed in the regex because they are technically valid, even though they are rarely used in practice. The regex will still enforce that only lowercase letters, numbers, and hyphens are allowed, and it will ensure that the domain name does not start or end with a hyphen. This allows for a wide range of valid domain names while still enforcing the necessary restrictions for a typical domain name format.
46+
# Single character domain names are not allowed in the regex because they are technically valid, even though they are rarely used in practice. The regex will still enforce that only lowercase letters, numbers, and hyphens are allowed, and it will ensure that the domain name does not start or end with a hyphen. This allows for a wide range of valid domain names while still enforcing the necessary restrictions for a typical domain name format.
4747
while true; do
4848
read -p "Enter the domain name (e.g., 'wordpresstesting'): " DOMAIN_NAME
4949
if [[ "$DOMAIN_NAME" =~ ^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]]; then

0 commit comments

Comments
 (0)