Simplify regex pattern.
This commit is contained in:
parent
aef9de2555
commit
26b119d319
|
@ -120,7 +120,7 @@ public final class MinecraftVersion implements Comparable<MinecraftVersion>, Ser
|
|||
/**
|
||||
* Regular expression used to parse version strings.
|
||||
*/
|
||||
private static final Pattern VERSION_PATTERN = Pattern.compile(".*\\(.*MC.\\s*([a-zA-z0-9\\-.]+).*");
|
||||
private static final Pattern VERSION_PATTERN = Pattern.compile(".*\\(.*MC.\\s*([a-zA-z\\d\\-.]+).*");
|
||||
|
||||
/**
|
||||
* The current version of minecraft, lazy initialized by MinecraftVersion.currentVersion()
|
||||
|
|
Loading…
Reference in New Issue