GutoVeronezi commented on a change in pull request #5909:
URL: https://github.com/apache/cloudstack/pull/5909#discussion_r797952364
##########
File path: utils/src/main/java/com/cloud/utils/UuidUtils.java
##########
@@ -29,7 +29,7 @@ public final static String first(String uuid) {
}
public static boolean validateUUID(String uuid) {
- RegularExpression regex = new
RegularExpression("[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}");
+ RegularExpression regex = new
RegularExpression("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
Review comment:
@DaanHoogland, fixed, thanks.
--
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]