You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/functions/vhost/vhost-install.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ echo "Then, select a valid TLD from the provided list."
43
43
echo""
44
44
45
45
# 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.
47
47
whiletrue;do
48
48
read -p "Enter the domain name (e.g., 'wordpresstesting'): " DOMAIN_NAME
49
49
if [[ "$DOMAIN_NAME"=~ ^[a-z0-9][a-z0-9-]*[a-z0-9]$ ]];then
0 commit comments