bharos commented on code in PR #9939:
URL: https://github.com/apache/gravitino/pull/9939#discussion_r2811497214
##########
common/src/main/java/org/apache/gravitino/Version.java:
##########
@@ -36,10 +36,9 @@ public class Version {
private static final int VERSION_PART_NUMBER = 3;
private static final Pattern PATTERN =
-
Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(?:rc(\\d{1,4})|-.*|\\.([a-zA-Z].*))?$");
+
Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(?:rc(\\d{1,9})|-.*|\\.([a-zA-Z].*))?$");
Review Comment:
If we don't care about number of digits in rc, it could be
```
^(\d+)\.(\d+)\.(\d+)(?:-rc(\d+)|-.*|\.([a-zA-Z].*))?$
```
--
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]