Relax expected Minecraft version format. Partially fixes ticket 124

This commit is contained in:
Kristian S. Stangeland 2013-09-02 16:14:11 +02:00
parent d810d17abb
commit db2efbe089

View File

@ -35,7 +35,7 @@ public class MinecraftVersion implements Comparable<MinecraftVersion> {
/**
* Regular expression used to parse version strings.
*/
private static final String VERSION_PATTERN = ".*\\(MC:\\s*((?:\\d+\\.)*\\d)\\s*\\)";
private static final String VERSION_PATTERN = ".*\\(.*MC.\\s*((?:\\d+\\.)*\\d)\\s*\\)";
private final int major;
private final int minor;