Skip to content

Commit 032aae5

Browse files
authored
paper: support "pre" versions (#636)
1 parent 6ac90f1 commit 032aae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/itzg/helpers/paper/InstallPaperCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static class Coordinates {
6161
@Option(names = "--project", defaultValue = "paper")
6262
String project;
6363

64-
private static final Pattern ALLOWED_VERSIONS = Pattern.compile("latest|\\d+\\.\\d+(\\.\\d+)?(-SNAPSHOT)?",
64+
private static final Pattern ALLOWED_VERSIONS = Pattern.compile("latest|\\d+\\.\\d+(\\.\\d+)?(-SNAPSHOT|-pre\\d+)?",
6565
Pattern.CASE_INSENSITIVE
6666
);
6767

0 commit comments

Comments
 (0)