Fix update check on 3+ digit build numbers (#4069)

This commit is contained in:
Josh Roy 2021-03-19 00:14:45 -04:00 committed by GitHub
parent 1cf2b11f1e
commit bfeb0ef2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public final class UpdateChecker {
if (inputStream != null) {
final List<String> versionStr = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8)).lines().collect(Collectors.toList());
if (versionStr.size() == 2) {
if (versionStr.get(0).matches("\\d+\\.\\d+\\.\\d+-dev\\+\\d\\d-[0-9a-f]{7,40}")) {
if (versionStr.get(0).matches("\\d+\\.\\d+\\.\\d+-dev\\+\\d+-[0-9a-f]{7,40}")) {
identifier = versionStr.get(0).split("-")[2];
dev = true;
} else {