JoaoJandre commented on code in PR #6589:
URL: https://github.com/apache/cloudstack/pull/6589#discussion_r936916631
##########
utils/src/main/java/com/cloud/utils/UuidUtils.java:
##########
@@ -28,6 +28,10 @@ public final static String first(String uuid) {
return uuid.substring(0, uuid.indexOf('-'));
}
+ public static boolean isUuid(String data) {
Review Comment:
As far as I know, `regex.matches()` does not throw any exceptions, it
returns false when the String doesn't match the regex.
--
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]