Skip to content

Commit

Permalink
Don't capture the pr version group
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Apr 18, 2024
1 parent e0a2d2f commit 3986777
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ public record Version(
) {
// NOTE: this pattern cannot contain any capturing groups
@Language("RegExp")
public static final String PATTERN = "(?:latest|(pr)?[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?";
public static final String PATTERN = "(?:latest|(?:pr)?[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?";
public static final Comparator<Version> COMPARATOR = Comparator.comparing(Version::time);
}

0 comments on commit 3986777

Please sign in to comment.