sureshanaparti commented on code in PR #10051:
URL: https://github.com/apache/cloudstack/pull/10051#discussion_r1891106650


##########
utils/src/main/java/com/cloud/utils/net/NetUtils.java:
##########
@@ -99,6 +99,10 @@ public class NetUtils {
     public final static int IPV6_EUI64_11TH_BYTE = -1;
     public final static int IPV6_EUI64_12TH_BYTE = -2;
 
+    // Regex
+    public final static Pattern HOSTNAME_PATTERN = 
Pattern.compile("[a-zA-Z0-9-]+");
+    public final static Pattern START_HOSTNAME_PATTERN = 
Pattern.compile("^[0-9-].*");

Review Comment:
   yes, can skip the start pattern for host name. for now, keeping it as 
separate check.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to