From e0a2d2fd43fdf10f2bca2ae12360c16a1a5bb25c Mon Sep 17 00:00:00 2001 From: rtm516 Date: Thu, 18 Apr 2024 17:09:01 +0100 Subject: [PATCH] Allow PR prefix in version number --- src/main/java/io/papermc/bibliothek/database/model/Version.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/papermc/bibliothek/database/model/Version.java b/src/main/java/io/papermc/bibliothek/database/model/Version.java index 0a421e7..313f0ae 100644 --- a/src/main/java/io/papermc/bibliothek/database/model/Version.java +++ b/src/main/java/io/papermc/bibliothek/database/model/Version.java @@ -43,6 +43,6 @@ public record Version( ) { // NOTE: this pattern cannot contain any capturing groups @Language("RegExp") - public static final String PATTERN = "(?:latest|[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?"; + public static final String PATTERN = "(?:latest|(pr)?[0-9.]+-?(?:pre|SNAPSHOT)?(?:[0-9.]+)?)?"; public static final Comparator COMPARATOR = Comparator.comparing(Version::time); }