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); }