mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 01:54:25 +02:00
Fix pattern in update, to read the version info correctly
This commit is contained in:
@@ -37,7 +37,7 @@ public class Version implements Comparable<Version>
|
|||||||
|
|
||||||
public Version(final String versionString)
|
public Version(final String versionString)
|
||||||
{
|
{
|
||||||
final Matcher matcher = Pattern.compile("(Pre|Dev)?([0-9]+)[_\\.]([0-9]+)[_\\.]([0-9]+).*").matcher(versionString);
|
final Matcher matcher = Pattern.compile("(Pre|Dev)?([0-9]+)[_\\.-]([0-9]+)[_\\.-]([0-9]+).*").matcher(versionString);
|
||||||
if (!matcher.matches() || matcher.groupCount() < 4)
|
if (!matcher.matches() || matcher.groupCount() < 4)
|
||||||
{
|
{
|
||||||
type = Type.DEVELOPER;
|
type = Type.DEVELOPER;
|
||||||
|
Reference in New Issue
Block a user