Skip to content

Commit

Permalink
update semver pattern to prepare for eg 2022.10.03 patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Axle1975 committed Oct 4, 2022
1 parent d0da152 commit 04356e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/faforever/client/update/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class Version {
private static String currentVersion;

private static final String SNAPSHOT_VERSION = "snapshot";
private static final Pattern SEMVER_PATTERN = Pattern.compile("v?\\d+(\\.\\d+)*-taf-\\d+(\\.\\d+)*[^\\.]*");
private static final Pattern SEMVER_PATTERN = Pattern.compile("v?\\d+(\\.\\d+)*(-taf-\\d+)?(\\.\\d+)*[^\\.]*");
private static final String UNSPECIFIED_VERSION = "unspecified";

static {
Expand Down

0 comments on commit 04356e4

Please sign in to comment.