Skip to content

Commit 3bda752

Browse files
authored
Merge pull request #129 from aternosorg/detect-pre-release-versions
Detect Pre-Release and Release Candidate versions
2 parents bd706d4 + cd25543 commit 3bda752

8 files changed

+2441
-2
lines changed

src/Analysis/Information/Vanilla/VanillaVersionInformation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class VanillaVersionInformation extends VanillaInformation
88
{
9-
protected static string $vanillaVersionPattern = '[0-9\.w]+(?:[a-z]|-(?:pre|rc)\d+)?';
9+
protected static string $vanillaVersionPattern = '[0-9\.w]+(?:[a-z]|(?:-|\s)?(?:pre|rc|Pre-Release|Release Candidate)\s?\d+)?';
1010

1111
/**
1212
* @inheritDoc
@@ -33,4 +33,4 @@ public function __construct()
3333
{
3434
$this->label = Translator::getInstance()->getTranslation("minecraft-version");
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)