tkalkirill commented on code in PR #1116:
URL: https://github.com/apache/ignite-3/pull/1116#discussion_r979256720


##########
modules/core/src/main/java/org/apache/ignite/internal/properties/IgniteProductVersion.java:
##########
@@ -29,11 +30,9 @@
  */
 public class IgniteProductVersion implements Serializable {
     private static final Pattern VERSION_PATTERN =
-            
Pattern.compile("(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<maintenance>\\d+)((?<snapshot>-SNAPSHOT)|-(?<alpha>alpha\\d+))?");
+            
Pattern.compile("(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<maintenance>\\d+)(\\.(?<patch>\\d+))?(-(?<preRelease>[0-9A-Za-z]+))?");

Review Comment:
   According to the [SemVer2](https://semver.org/#spec-item-9) pre release 
cannot contain underscores.
   
   Would such a description be appropriate?
    ```
      /**
        * Ignite version in the following formats 
"major.minor.maintenance(.patch)?(-preRelease)?".
        *
        * <p>Given a version number major.minor.maintenance.patch, increment 
the:
        * <ul>
        *     <li>Major version when you make incompatible API changes.</li>
        *     <li>Minor version when you add functionality in a backwards 
compatible manner.</li>
        *     <li>Maintenance version when you make backwards compatible bug 
fixes.</li>
        *     <li>Patch version when you make backwards compatible bug fixes 
for an existing release.</li>
        * </ul>
        *
        * <p>Additional labels for pre-release and build metadata are available 
as extensions to the major.minor.maintenance.patch format.
        *
        * <p>Ignite Version examples:
        * <ul>
        *     <li>3.0.0</li>
        *     <li>3.1.0</li>
        *     <li>3.1.2</li>
        *     <li>3.1.2.1</li>
        *     <li>3.1.3-alpha1</li>
        *     <li>3.1.3-SNAPSHOT</li>
        * </ul>
        */
   ```



-- 
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